Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
9acbd355
Commit
9acbd355
authored
Jan 20, 2012
by
Jelte Jansen
Browse files
[1558] try both -R and -Wl,-R as rpath compiler flags
parent
079133e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
9acbd355
...
...
@@ -53,11 +53,18 @@ AC_MSG_CHECKING([whether -R flag is available in linker])
LDFLAGS_SAVED="$LDFLAGS"
LDFLAGS="$LDFLAGS -R/usr/lib"
AC_TRY_LINK([],[],
[ AC_MSG_RESULT(yes)
rpath_available=yes
],[ AC_MSG_RESULT(no)
rpath_available=no
])
[ AC_MSG_RESULT(yes)
rpath_flag=-R
],[ AC_MSG_RESULT(no)
AC_MSG_CHECKING([whether -Wl,-R flag is available in linker])
LDFLAGS="$LDFLAGS_SAVED -Wl,-R"
AC_TRY_LINK([], [],
[ AC_MSG_RESULT(yes)
rpath_flag=-Wl,-R
],[ AC_MSG_RESULT(no)
rpath_flag=no
])
])
LDFLAGS=$LDFLAGS_SAVED
# allow building programs with static link. we need to make it selective
...
...
@@ -202,10 +209,10 @@ fi
# modules, we embed the path to the modules when possible. We do this even
# when the path is known in the common operational environment (e.g. when
# it's stored in a common "hint" file) for simplicity.
if test $rpath_
available = yes
; then
if test $rpath_
flag != no
; then
python_rpath=
for flag in ${PYTHON_LDFLAGS}; do
python_rpath="${python_rpath} `echo $flag | sed -ne
'
s/^\(\-L\)/
-R
/p
'
`"
python_rpath="${python_rpath} `echo $flag | sed -ne
"
s/^\(\-L\)/
${rpath_flag}
/p
"
`"
done
PYTHON_LDFLAGS="${PYTHON_LDFLAGS} ${python_rpath}"
fi
...
...
@@ -534,10 +541,10 @@ for flag in ${BOTAN_LIBS}; do
done
# See python_rpath for some info on why we do this
if test $rpath_
available = yes
; then
if test $rpath_
flag != no
; then
BOTAN_RPATH=
for flag in ${BOTAN_LIBS}; do
BOTAN_RPATH="${BOTAN_RPATH} `echo $flag | sed -ne
'
s/^\(\-L\)/
-R
/p
'
`"
BOTAN_RPATH="${BOTAN_RPATH} `echo $flag | sed -ne
"
s/^\(\-L\)/
${rpath_flag}
/p
"
`"
done
AC_SUBST(BOTAN_RPATH)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment