Skip to content

Commit 4c20ba3

Browse files
committed
Move -fPIC to OPTIM.
1 parent 9a4af1d commit 4c20ba3

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5618,8 +5618,8 @@ _ACEOF
56185618
if ac_fn_c_try_compile "$LINENO"
56195619
then :
56205620

5621-
OLDCFLAGS="-fPIC $OLDCFLAGS"
56225621
LDFLAGS="-fPIE -Wl,-pie $LDFLAGS"
5622+
OPTIM="-fPIC $OPTIM"
56235623
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56245624
printf "%s\n" "yes" >&6; }
56255625

@@ -5648,8 +5648,8 @@ _ACEOF
56485648
if ac_fn_c_try_compile "$LINENO"
56495649
then :
56505650

5651-
OLDCFLAGS="-fPIC $OLDCFLAGS"
56525651
LDFLAGS="-fPIE -pie $LDFLAGS"
5652+
OPTIM="-fPIC $OPTIM"
56535653
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56545654
printf "%s\n" "yes" >&6; }
56555655

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,17 +640,17 @@ AC_ARG_WITH([ldflags], AS_HELP_STRING([--with-ldflags=...], [Specify additional
640640
AS_CASE(["$host_os_name"], [darwin*], [
641641
CFLAGS="$CFLAGS -fPIC -fPIE -Wl,-pie"
642642
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[
643-
OLDCFLAGS="-fPIC $OLDCFLAGS"
644643
LDFLAGS="-fPIE -Wl,-pie $LDFLAGS"
644+
OPTIM="-fPIC $OPTIM"
645645
AC_MSG_RESULT([yes])
646646
],[
647647
AC_MSG_RESULT([no])
648648
])
649649
], [*], [
650650
CFLAGS="$CFLAGS -fPIC -fPIE -pie"
651651
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[
652-
OLDCFLAGS="-fPIC $OLDCFLAGS"
653652
LDFLAGS="-fPIE -pie $LDFLAGS"
653+
OPTIM="-fPIC $OPTIM"
654654
AC_MSG_RESULT([yes])
655655
],[
656656
AC_MSG_RESULT([no])

0 commit comments

Comments
 (0)