mirror of
https://github.com/curl/curl.git
synced 2026-08-25 06:33:32 +03:00
configure: generate a script to run the compiler
in the CURL_RUN_IFELSE macro, with LD_LIBRARY_PATH set to the value of the configure invoke, and not the value that might be used later, intended for the execution of the output the compiler ouputs. For example when the compiler uses the same library (like libz) that configure checks for. Reported-by: Jonas Bülow Fixes #11114 Closes #11120
This commit is contained in:
parent
408eb87bb3
commit
b78ca50cb3
2 changed files with 16 additions and 0 deletions
|
|
@ -5866,11 +5866,14 @@ AC_DEFUN([CURL_RUN_IFELSE], [
|
|||
AC_RUN_IFELSE([AC_LANG_SOURCE([$1])], $2, $3, $4)
|
||||
;;
|
||||
*)
|
||||
oldcc=$CC
|
||||
old=$LD_LIBRARY_PATH
|
||||
CC="sh ./run-compiler"
|
||||
LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
|
||||
export LD_LIBRARY_PATH
|
||||
AC_RUN_IFELSE([AC_LANG_SOURCE([$1])], $2, $3, $4)
|
||||
LD_LIBRARY_PATH=$old # restore
|
||||
CC=$oldcc
|
||||
;;
|
||||
esac
|
||||
])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue