blob: b2716994287294f32e639ef4d8a3252a9917aeb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$NetBSD: patch-aa,v 1.11 2013/08/05 19:24:35 adam Exp $
Compile 'strip' test with CFLAGS, so -isysroot can be passed on OSX.
Correct library detection on NetBSD.
--- config.lib.orig 2012-04-15 11:55:05.000000000 +0000
+++ config.lib
@@ -2001,7 +2001,7 @@ check_strip() {
elif [ "$os" = "OSX" ]; then
# Most targets have -V in strip, to see if they exists... OSX doesn't.. so execute something
echo "int main(int argc, char *argv[]) { }" > strip.test.c
- $cxx_host strip.test.c -o strip.test
+ $cc_host $CFLAGS strip.test.c -o strip.test
check_compiler "host strip" "strip" "$host" "$strip" "$STRIP" "strip" "strip" "3" "strip.test"
rm -f strip.test.c strip.test
else
@@ -2533,7 +2533,7 @@ detect_library() {
if [ -z "$res" ]; then
log 2 " trying /opt/local/include/$4$5... no"
fi
- if [ -z "$res" ] && [ "$os" = "NETBSD" ]; then
+ if [ -z "$res" ]; then
eval "$2=`ls -1 /usr/pkg/include/$4*.h 2>/dev/null | egrep \"\/$5\$\"`"
eval "res=\$$2"
if [ -z "$res" ]; then
|