diff options
author | demon <demon@FreeBSD.org> | 2005-12-08 00:01:51 +0800 |
---|---|---|
committer | demon <demon@FreeBSD.org> | 2005-12-08 00:01:51 +0800 |
commit | d2a03dee83c64c95dc1689aaa86b809008e52501 (patch) | |
tree | bb49fa134b993519b1045441b2a8893a450e6b36 | |
parent | 79bc0ffcf0c223b9e905930462f3174aa61a6fa9 (diff) | |
download | freebsd-ports-gnome-d2a03dee83c64c95dc1689aaa86b809008e52501.tar.gz freebsd-ports-gnome-d2a03dee83c64c95dc1689aaa86b809008e52501.tar.zst freebsd-ports-gnome-d2a03dee83c64c95dc1689aaa86b809008e52501.zip |
Put -L(LIBDIR) before -l(libname) in gcc options.
-rw-r--r-- | devel/p5-Locale-gettext/files/patch-Makefile.PL | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/devel/p5-Locale-gettext/files/patch-Makefile.PL b/devel/p5-Locale-gettext/files/patch-Makefile.PL index 04f13906b7c2..15b2dd8f2648 100644 --- a/devel/p5-Locale-gettext/files/patch-Makefile.PL +++ b/devel/p5-Locale-gettext/files/patch-Makefile.PL @@ -6,7 +6,7 @@ # try with -lintl - $libs = "-lintl"; - unless (conftest("char *x = gettext(\"foo\");", "gettext", 0)) { -+ $libs = "-lintl -L$ENV{LOCALBASE}/lib -I$ENV{LOCALBASE}/include"; ++ $libs = "-L$ENV{LOCALBASE}/lib -lintl -I$ENV{LOCALBASE}/include"; + unless (conftest("#include <libintl.h>\nchar *x = gettext(\"foo\");", "gettext", 0)) { unlink("conftest.c"); unlink("conftest"); @@ -16,7 +16,7 @@ WriteMakefile( NAME => "Locale::gettext", - LIBS => ($libs eq '') ? [] : [$libs], -+ LIBS => ($libs eq '') ? [] : ["-lintl -L$ENV{LOCALBASE}/lib"], ++ LIBS => ($libs eq '') ? [] : ["-L$ENV{LOCALBASE}/lib -lintl"], + INC => "-I$ENV{LOCALBASE}/include", VERSION_FROM => 'gettext.pm', ); |