summaryrefslogtreecommitdiff
path: root/debian/patches/dyson-hints.patch
blob: bcd5b19aaf3ce0f8b408f67d755ac26aeb227a1c (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
26
27
28
29
30
31
32
33
34
Index: perl-5.20.1/hints/solaris_2.sh
===================================================================
--- perl-5.20.1.orig/hints/solaris_2.sh
+++ perl-5.20.1/hints/solaris_2.sh
@@ -63,6 +63,11 @@ esac
 set `echo " $libswanted " | sed -e 's@ ld @ @' -e 's@ malloc @ @' -e 's@ ucb @ @' -e 's@ sec @ @' -e 's@ crypt @ @'`
 libswanted="$*"
 
+# Dyson: these libs are filters to libc (until switch to glibc ;-):
+set `echo " $libswanted " | sed -e 's@ dl @ @' -e 's@ pthread @ @'`
+libswanted="$*"
+libswanted="$libswanted socket nsl resolv"
+
 # Look for architecture name.  We want to suggest a useful default.
 case "$archname" in
 '')
@@ -201,6 +206,17 @@ END
 fi
 rm -f make.vers
 
+ 
+case "$plibpth" in
+'') plibpth=`gcc -print-search-dirs | grep libraries |
+        cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
+    set X $plibpth # Collapse all entries on one line
+    shift
+    plibpth="$*"
+    ;;
+esac
+
+
 cat > UU/cc.cbu <<'EOCBU'
 # This script UU/cc.cbu will get 'called-back' by Configure after it
 # has prompted the user for the C compiler to use.