在linux的交叉环境下编译:出错./.libs/libtcmalloc_debug.so: undefined reference to `__sbrk'。我用./configure配置时是用./configure --host=交叉编译器 --with-gnu-ld --prefix=/home/pwu/gperftools/_install2 -enable-frame-pointers.
因为要在嵌入式设备上跑所以用交叉编译器编译就出错了,用gcc就没问题。感觉好像是库链接错误,但具体不知道怎么修改。