diff options
author | Max Kellermann <max@duempel.org> | 2015-05-04 10:36:36 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-05-05 00:46:29 +0200 |
commit | 9f8959bd5c87654ba54d280cf6b7c68d0c1435f0 (patch) | |
tree | 509331940e996c96a77b08be0efcf16836ee94ec /configure.ac | |
parent | 8baf0dac4dfd0a180eac752d0eefa5302a7bb164 (diff) |
configure.ac: pass $CFLAGS to $CC in XB_FIND_SONAME
Required for cross-compiling when CFLAGS contains -march=...
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index cb7524f4fc..1c97b6d71e 100644 --- a/configure.ac +++ b/configure.ac @@ -64,10 +64,10 @@ AC_DEFUN([XB_FIND_SONAME], fi elif [[ "$host_vendor" != "apple" ]]; then AC_MSG_CHECKING([for lib$2 soname]) - $1_FILENAME=$($CC -nostdlib -o /dev/null $LDFLAGS $4 -l$2 -Wl,-M 2>/dev/null | grep "^LOAD.*$2" | awk '{V=2; print $V}') + $1_FILENAME=$($CC -nostdlib -o /dev/null $CFLAGS $LDFLAGS $4 -l$2 -Wl,-M 2>/dev/null | grep "^LOAD.*$2" | awk '{V=2; print $V}') if [[ -z $$1_FILENAME ]]; then #try gold linker syntax - $1_FILENAME=$($CC -nostdlib -o /dev/null $LDFLAGS $4 -l$2 -Wl,-t 3>&1 1>&2 2>&3 | grep "lib$2") + $1_FILENAME=$($CC -nostdlib -o /dev/null $CFLAGS $LDFLAGS $4 -l$2 -Wl,-t 3>&1 1>&2 2>&3 | grep "lib$2") fi if [[ ! -z $$1_FILENAME ]]; then $1_SONAME=$($OBJDUMP -p $$1_FILENAME | grep "SONAME.*$2" | awk '{V=2; print $V}') |