Autotools : how to set global compilation flag

后端 未结 2 850
天命终不由人
天命终不由人 2020-12-30 01:25

I have a project with several sources directories :

src/A
   /B
   /C

In each, the Makefile.am contains

AM_CXXFLAGS = -fP         


        
2条回答
  •  死守一世寂寞
    2020-12-30 02:22

    Use EXTRA_CFLAGS in configure.ac

    For example for your case it would be this:

    EXTRA_CFLAGS=-fPIC -Wall -Wextra

提交回复
热议问题