diff options
| author | Jose E. Marchesi <[email protected]> | 2015-10-05 17:36:30 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2015-10-06 23:40:19 +0200 |
| commit | 133509fa406e0e8d4d0f0632e2ee8c5e32dcb010 (patch) | |
| tree | fd35007eb121d163d77052cb1bf69c79a0ef50c4 /configure.ac | |
| parent | 22843755fa0b6870162660105c6fbbd1ba078390 (diff) | |
Use -fPIC instead of -fpic when generating PIC code.
This avoids relocation overflows in sparc/sparc64 targets while
linking, where the reachable data using -fpic is only 4kb.
Signed-off-by: Jose E. Marchesi <[email protected]>
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 9c47a688..fe2795e3 100644 --- a/configure.ac +++ b/configure.ac @@ -111,7 +111,7 @@ AC_CACHE_CHECK([for __thread support], ac_cv_tls, [dnl # Some old compiler/linker/libc combinations fail some ways and not others. save_CFLAGS="$CFLAGS" save_LDFLAGS="$LDFLAGS" -CFLAGS="-fpic $CFLAGS" +CFLAGS="-fPIC $CFLAGS" LDFLAGS="-shared -Wl,-z,defs,-z,relro $LDFLAGS" AC_LINK_IFELSE([dnl AC_LANG_PROGRAM([[#include <stdlib.h> |
