You are not logged in.
Pages: 1
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
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
Pages: 1