diff options
author | ben <ben@pkgsrc.org> | 2006-01-02 02:21:30 +0000 |
---|---|---|
committer | ben <ben@pkgsrc.org> | 2006-01-02 02:21:30 +0000 |
commit | 0ee1bbe5093abfdc36c499249d51b43950b10a62 (patch) | |
tree | 8effee31123f1d927720809620e427696c5f1a3b /lang/gforth | |
parent | d3a90242d34fb6dd26f193b470539749d122d52f (diff) | |
download | pkgsrc-0ee1bbe5093abfdc36c499249d51b43950b10a62.tar.gz |
The gforth configure script tests for linker support of -export-dynamic,
and then adds it to LDFLAGS. Later, the configure script tests for the
presence of certain functions in libc, and expects to get an error at
link time if the functions are missing. On Interix with -export-dynamic,
the link succeeds even if there are missing functions. This causes
configure to detect all tested functions as present, and produce
binaries that fail at run time.
To work around this issue, postpone adding -export-dynamic to LDFLAGS
until the end of the configure script.
Diffstat (limited to 'lang/gforth')
-rw-r--r-- | lang/gforth/distinfo | 3 | ||||
-rw-r--r-- | lang/gforth/patches/patch-ad | 23 |
2 files changed, 25 insertions, 1 deletions
diff --git a/lang/gforth/distinfo b/lang/gforth/distinfo index 9692e5026f5..f2a3132614d 100644 --- a/lang/gforth/distinfo +++ b/lang/gforth/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.4 2005/02/24 09:03:07 agc Exp $ +$NetBSD: distinfo,v 1.5 2006/01/02 02:21:30 ben Exp $ SHA1 (gforth-0.6.2.tar.gz) = 926faeac7ccc00e86a74954dc7c693b19f13e616 RMD160 (gforth-0.6.2.tar.gz) = 692aa412e59954f87a7b44027901248f8939e9ee @@ -6,3 +6,4 @@ Size (gforth-0.6.2.tar.gz) = 1925536 bytes SHA1 (patch-aa) = 50bef56bbb5a6f2fe664d370d35d39d72d0982bf SHA1 (patch-ab) = a80fd7553acce1168931171b9c100eb25e2fa19a SHA1 (patch-ac) = d9155ee2d7f06b3aafeaa5fc2719948deb1c9c7e +SHA1 (patch-ad) = 16f9d13fc9ddfda3d45df627f4b46942225a5c1d diff --git a/lang/gforth/patches/patch-ad b/lang/gforth/patches/patch-ad new file mode 100644 index 00000000000..49f3d20c903 --- /dev/null +++ b/lang/gforth/patches/patch-ad @@ -0,0 +1,23 @@ +$NetBSD: patch-ad,v 1.1 2006/01/02 02:21:30 ben Exp $ + +--- configure.orig Mon Aug 25 01:03:42 2003 ++++ configure +@@ -3316,7 +3316,8 @@ ac_export_dynamic=no + fi + rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext + fi +-test $ac_export_dynamic = yes|| LDFLAGS=$OLDLDFLAGS ++#test $ac_export_dynamic = yes|| LDFLAGS=$OLDLDFLAGS ++LDFLAGS=$OLDLDFLAGS + echo "$as_me:$LINENO: result: $ac_export_dynamic" >&5 + echo "${ECHO_T}$ac_export_dynamic" >&6 + +@@ -10853,6 +10854,8 @@ do + mv conftest.tail conftest.undefs + done + rm -f conftest.undefs ++ ++test $ac_export_dynamic = yes && LDFLAGS="$LDFLAGS -export-dynamic" + + cat >>$CONFIG_STATUS <<\_ACEOF + # Let's still pretend it is `configure' which instantiates (i.e., don't |