From 7819d58787082f794afcc38c1a19ee20a805f4bd Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Tue, 22 Nov 2016 11:18:07 -0800 Subject: new test case with fPIE --- .travis.yml | 2 +- lib/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c127fa5..e3f476b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -130,7 +130,7 @@ matrix: packages: - clang - - env: Ubu=14.04 Cmd='make clean all CC=gcc-4.4 MOREFLAGS=-Werror' COMPILER=gcc-4.4 + - env: Ubu=14.04 Cmd='make clean all CC=gcc-4.4 MOREFLAGS=-Werror && make clean && CFLAGS=-fPIC LDFLAGS="-pie -fPIE -D_FORTIFY_SOURCE=2" make -C programs' COMPILER=gcc-4.4 dist: trusty sudo: required addons: diff --git a/lib/Makefile b/lib/Makefile index 28242cc..a9c7df8 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -85,7 +85,7 @@ lib-release: lib liblz4.a: *.c ifeq ($(BUILD_STATIC),yes) @echo compiling static library - @$(CC) $(FLAGS) -c $^ + @$(CC) $(CPPFLAGS) $(CFLAGS) -c $^ @$(AR) rcs $@ *.o endif -- cgit v0.12