diff options
author | rh <rh@pkgsrc.org> | 2000-10-01 14:03:27 +0000 |
---|---|---|
committer | rh <rh@pkgsrc.org> | 2000-10-01 14:03:27 +0000 |
commit | a6361d0a69ad0445a5bd51aedec3b56bb927a5c1 (patch) | |
tree | 927449254f7f705ff2911828b2e03c924e5cc183 /graphics/libggi/patches/patch-ab | |
parent | 1c8f8eba167fbbe2b32337b337c3bd2a97bba164 (diff) | |
download | pkgsrc-a6361d0a69ad0445a5bd51aedec3b56bb927a5c1.tar.gz |
Add runtime library search patch.
Make this compile under NetBSD-1.4.x by moving conflicting definition in
#include <unistd.h> upfront.
Diffstat (limited to 'graphics/libggi/patches/patch-ab')
-rw-r--r-- | graphics/libggi/patches/patch-ab | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/graphics/libggi/patches/patch-ab b/graphics/libggi/patches/patch-ab new file mode 100644 index 00000000000..3fa85c1931f --- /dev/null +++ b/graphics/libggi/patches/patch-ab @@ -0,0 +1,46 @@ +$NetBSD: patch-ab,v 1.1 2000/10/01 14:03:27 rh Exp $ + +--- ltmain.sh.orig Thu Apr 1 03:11:12 1999 ++++ ltmain.sh +@@ -794,6 +794,7 @@ + old_convenience= + deplibs= + linkopts= ++ wllinkopts= + lib_search_path=`pwd` + + avoid_version=no +@@ -1105,6 +1106,25 @@ + continue + ;; + ++ -Wl,*) ++ args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'` ++ arg= ++ IFS="${IFS= }"; save_ifs="$IFS"; IFS=',' ++ for flag in $args; do ++ IFS="$save_ifs" ++ case "$flag" in ++ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") ++ flag="\"$flag\"" ++ ;; ++ esac ++ arg="$arg $wl$flag" ++ linkopts="$linkopts $flag" ++ wllinkopts="$wllinkopts $wl$flag" ++ done ++ IFS="$save_ifs" ++ arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ++ ;; ++ + # Some other compiler flag. + -* | +*) + # Unknown arguments in both finalize_command and compile_command need +@@ -2244,6 +2264,7 @@ + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then + eval flag=\"$thread_safe_flag_spec\" + linkopts="$linkopts $flag" ++ wllinkopts="$linkopts $wl$flag" + fi + + # Prepare the list of exported symbols |