You are not logged in.

#1 2018-06-15 07:00:28

inglor
Package Maintainer (PM)
Registered: 2008-07-22
Posts: 88

Meson CC and CXX flags

Hello,

I've just realized when a package with PKGBUILD is using meson it doesn't honor the CCFLAGS and CXXFLAGS specified in /etc/makepkg.conf. Any idea how to overcome this on PKGBUILDs ?

Cheers,
Leonidas

Offline

#2 2018-06-15 10:00:55

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Meson CC and CXX flags

Works for me. For example with mesa:

...
Project name: mesa
Native C compiler: cc (gcc 8.1.1 "cc (GCC) 8.1.1 20180531")
Appending CFLAGS from environment: '-march=skylake -O3 -pipe -fstack-protector-strong -fno-plt'
Appending LDFLAGS from environment: '-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Appending CPPFLAGS from environment: '-D_FORTIFY_SOURCE=2'
Native C++ compiler: c++ (gcc 8.1.1 "c++ (GCC) 8.1.1 20180531")
Appending CXXFLAGS from environment: '-march=skylake -O3 -pipe -fstack-protector-strong -fno-plt'
Appending LDFLAGS from environment: '-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Appending CPPFLAGS from environment: '-D_FORTIFY_SOURCE=2'
...

Do you use arch-meson? Post the actual PKGBUILD you're working on.

EDIT. I'm assuming CCFLAGS is a typo and you mean CFLAGS...

Last edited by ooo (2018-06-15 10:03:50)

Offline

Board footer

Powered by FluxBB