summaryrefslogtreecommitdiffstats
path: root/openwrt/package/ncurses/patches/500-cross.patch
blob: 953619140835dd8878f2f9a25d71077c2831cb95 (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
diff -ruN ncurses-5.2-orig/aclocal.m4 ncurses-5.2-6/aclocal.m4
--- ncurses-5.2-orig/aclocal.m4	2000-10-21 00:57:49.000000000 +0200
+++ ncurses-5.2-6/aclocal.m4	2005-08-09 14:50:15.000000000 +0200
@@ -1919,7 +1919,7 @@
 			EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
 		fi
 		test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
-		MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $[@] .$(REL_VERSION)`.$(ABI_VERSION),-stats,-lc -o $[@]'
+		MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $[@] .$(REL_VERSION)`.$(ABI_VERSION),-stats,$(LDFLAGS) -lc -o $[@]'
 		;;
 	openbsd2*)
 		CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
diff -ruN ncurses-5.2-orig/configure ncurses-5.2-6/configure
--- ncurses-5.2-orig/configure	2000-10-21 00:58:49.000000000 +0200
+++ ncurses-5.2-6/configure	2005-08-09 14:50:25.000000000 +0200
@@ -2660,7 +2660,7 @@
 			EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
 		fi
 		test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
-		MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $@ .$(REL_VERSION)`.$(ABI_VERSION),-stats,-lc -o $@'
+		MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $@ .$(REL_VERSION)`.$(ABI_VERSION),-stats,$(LDFLAGS) -lc -o $@'
 		;;
 	openbsd2*)
 		CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"