a second stab at detecting valid linker flags
This commit is contained in:
parent
9c9d1edf74
commit
1ce56adbef
@ -160,13 +160,17 @@ AS_CASE([$host_os], [cygwin*|mingw*|msys|pw32*|cegcc*], [ ], [
|
|||||||
AS_IF([test "$enable_pie" != "no"],[
|
AS_IF([test "$enable_pie" != "no"],[
|
||||||
AX_CHECK_COMPILE_FLAG([-fPIE], [
|
AX_CHECK_COMPILE_FLAG([-fPIE], [
|
||||||
AX_CHECK_LINK_FLAG([-fPIE], [
|
AX_CHECK_LINK_FLAG([-fPIE], [
|
||||||
|
AX_CHECK_LINK_FLAG([-Wl,-pie], [
|
||||||
CFLAGS="$CFLAGS -fPIE"
|
CFLAGS="$CFLAGS -fPIE"
|
||||||
AX_CHECK_COMPILE_FLAG(["-Wl,-pie"], [
|
|
||||||
LDFLAGS="$LDFLAGS -Wl,-pie"
|
LDFLAGS="$LDFLAGS -Wl,-pie"
|
||||||
], [
|
], [
|
||||||
|
AX_CHECK_LINK_FLAG([-pie], [
|
||||||
|
CFLAGS="$CFLAGS -fPIE"
|
||||||
LDFLAGS="$LDFLAGS -pie"
|
LDFLAGS="$LDFLAGS -pie"
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
|
AX_CHECK_LINK_FLAG([-pie], [])
|
||||||
|
])
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user