Bug 454 - Remove ACX_CHECK_COMPILER_FLAG from configure.ac
Remove ACX_CHECK_COMPILER_FLAG from configure.ac
Status: RESOLVED FIXED
Product: unbound
Classification: Unclassified
Component: server
1.4.17
All All
: P5 normal
Assigned To: unbound team
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-04 09:34 CEST by Дилян Палаузов
Modified: 2012-07-19 10:52 CEST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Дилян Палаузов 2012-07-04 09:34:37 CEST
On my system I have a file /etc/config.site, specifying the CFLAGS options I want to use for compilation.  It contains -O3 and does not contain -g .  That said, I want to compile my libraries without -g .  However, the usage of ACX_CHECK_COMPILER_FLAG in configure.ac adds to CFLAGS both -O2 and -g, so at the end the CFLAGS used for compilation are -O2 -g -O3 .  This is wrong, CFLAGS shall be just -O3 .  Please remove ACX_CHECK_COMPILER_FLAG from ldns/configure.ac, at least with first parameter g and O2 .
Comment 1 Willem Toorop 2012-07-13 11:05:19 CEST
Hi Дилян,

You are absolutely right. I have removed those from configure.ac.
Best regards,

-- Willem
Comment 2 Дилян Палаузов 2012-07-13 12:09:41 CEST
Please remove the checks for -g and -O2 in unbound:configure.ac , too.
Comment 3 Wouter Wijngaards 2012-07-19 10:52:53 CEST
Hi Дилян,

There is a check in unbound now, that if you specify CFLAGS, then it does not append -g -O2.  If you give no CFLAGS, then it will use -g -O2 (since some platforms require these sort of flags to produce a 'normal' executable).

Best regards,
   Wouter