문제

While compiling some libraries (spatialite 3.0.1, geos 3.3.3 and others) I've noticed that running ./configure results in a makefile that contains lines like this

CFLAGS = -g -O2
CXXFLAGS = -g -O2

That means that debug symbol generation is enabled by default. What I want is to disable debug compiling mode without manual makefile editing. I've ran ./configure --help for both of libraries mentioned above, but I have not found any option to get desired result. I feel that the solution should be very simple, but I'm stuck on this since I'm not very familiar with building software from sources.

OS: Linux Red Hat Enterprise 6

도움이 되었습니까?

해결책

Assuming you're talking about autoconf/automake:

Why not just keep the debugging symbols and let anybody who doesn't like them make install-strip?

다른 팁

You can pass CFLAGS and CXXFLAGS along with configure script

./configure CFLAGS="-O2" CXXFLAGS="-O2"
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top