mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 18:15:18 -07:00
Merge pull request #224 from JackWink/feature/jack/pie-linker-flag
Add '-Wl,-pie' check to squash clang warnings
This commit is contained in:
commit
17932c782e
14
configure.ac
14
configure.ac
@ -159,10 +159,16 @@ AS_CASE([$host_os], [cygwin*|mingw*|msys|pw32*|cegcc*], [ ], [
|
||||
|
||||
AS_IF([test "$enable_pie" != "no"],[
|
||||
AX_CHECK_COMPILE_FLAG([-fPIE], [
|
||||
AX_CHECK_LINK_FLAG([-fPIE],
|
||||
[AX_CHECK_LINK_FLAG([-pie],
|
||||
[CFLAGS="$CFLAGS -fPIE"
|
||||
LDFLAGS="$LDFLAGS -pie"])
|
||||
AX_CHECK_LINK_FLAG([-fPIE], [
|
||||
AX_CHECK_LINK_FLAG([-Wl,-pie], [
|
||||
CFLAGS="$CFLAGS -fPIE"
|
||||
LDFLAGS="$LDFLAGS -Wl,-pie"
|
||||
], [
|
||||
AX_CHECK_LINK_FLAG([-pie], [
|
||||
CFLAGS="$CFLAGS -fPIE"
|
||||
LDFLAGS="$LDFLAGS -pie"
|
||||
])
|
||||
])
|
||||
])
|
||||
])
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user