diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-03-02 14:53:11 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-05-28 06:08:28 -0700 |
commit | ca1f728cbefd6955735087e45d80620113623b3b (patch) | |
tree | ba764e7f0391b93777d90d6a08a24695c2037634 /math/Makefile | |
parent | 1ea33bb5517516d1d1005b953c92a071454e66d5 (diff) | |
download | glibc-hjl/pr17841/master.tar.gz glibc-hjl/pr17841/master.tar.xz glibc-hjl/pr17841/master.zip |
Compile archives with -fno-pie hjl/pr17841/master
When compiler defaults to PIE, we compile archives with -fno-pie. Since archives won't be used with PIE, compile them with -fpie isn't necessary. [BZ #17841] * Makeconfig (no-pie-ccflag): New. Set to -fno-pie. (pic-default): Don't define if $(no-pie-ccflag) is -fno-pie. (test-object-suffix): New. * Makerules (archive-objects): New. Set before including extra-lib.mk. ($(archive-objects)): New. New rule to append $(no-pie-ccflag) to CFLAGS. * extra-lib.mk (archive-objects): New. * crypt/Makefile ($(objpfx)md5test): Replace ".o" with $(test-object-suffix). ($(objpfx)md5test-giant): Likewise. ($(objpfx)sha256test): Likewise. ($(objpfx)sha512test): Likewise. * math/Makefile (LDFLAGS-atest-exp): New. (LDFLAGS-atest-sincos): Likewise. (LDFLAGS-atest-exp2): Likewise.
Diffstat (limited to 'math/Makefile')
-rw-r--r-- | math/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile index 9a3cf3228b..5cc55931d5 100644 --- a/math/Makefile +++ b/math/Makefile @@ -246,4 +246,7 @@ gmp-objs = $(patsubst %,$(common-objpfx)stdlib/%.o,\ $(objpfx)atest-exp: $(gmp-objs) $(objpfx)atest-sincos: $(gmp-objs) $(objpfx)atest-exp2: $(gmp-objs) +LDFLAGS-atest-exp = $(no-pie-ldflag) +LDFLAGS-atest-sincos = $(no-pie-ldflag) +LDFLAGS-atest-exp2 = $(no-pie-ldflag) $(objpfx)test-fenv-tls: $(shared-thread-library) |