diff options
author | Andrey Vihrov | 2017-02-16 00:04:41 +0200 |
---|---|---|
committer | Andrey Vihrov | 2017-02-16 00:04:41 +0200 |
commit | 367065dedf0830627be91502284b38129a03c9ab (patch) | |
tree | dfa5d5a4150443aa5bb2d8c9dd55edb5032c4be4 | |
parent | 4997e1e51deeb7634797c064701b3eb2fe95aa54 (diff) | |
download | aur-367065dedf0830627be91502284b38129a03c9ab.tar.gz |
Fix CPPFLAGS usage
-rw-r--r-- | PKGBUILD | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -18,15 +18,16 @@ prepare() { # Fix permissions on header files sed -i -e '/$(HEADERS)/s/install/\0 -m 0644/' makefile.shared - # Fix recursive make sed -i -e 's/make -f/$(MAKE) -f/' makefile.shared + # Pass CPPFLAGS for aes_enc.o + sed -i -e 's/-DENCRYPT_ONLY/$(CPPFLAGS) \0/' makefile.shared } build() { cd "${pkgname}-${pkgver}" - CFLAGS+=" -DLTM_DESC -DGMP_DESC" \ + CPPFLAGS+=" -DLTM_DESC -DGMP_DESC" \ EXTRALIBS="${LDFLAGS} -ltommath -lgmp" \ make -f makefile.shared IGNORE_SPEED=1 } @@ -34,7 +35,7 @@ build() { check() { cd "${pkgname}-${pkgver}" - CFLAGS+=" -DLTM_DESC -DUSE_LTM -I./testprof" \ + CPPFLAGS+=" -DLTM_DESC -DUSE_LTM -I./testprof" \ EXTRALIBS="${LDFLAGS} -L./.libs -L./testprof/.libs \ '-Wl,--rpath,\$\${ORIGIN}/.libs:\$\${ORIGIN}/testprof/.libs'" \ make -f makefile.shared test IGNORE_SPEED=1 |