- link correctly with libiconv and libintl, without adding them to LDFLAGS

- respect CXXFLAGS
This commit is contained in:
ajacoutot 2007-10-16 14:46:46 +00:00
parent addc338b24
commit e0a39a897d
2 changed files with 36 additions and 22 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.6 2007/09/12 16:23:26 ajacoutot Exp $ # $OpenBSD: Makefile,v 1.7 2007/10/16 14:46:46 ajacoutot Exp $
COMMENT= MS-Explorer like file manager for X COMMENT= MS-Explorer like file manager for X
DISTNAME= xfe-1.04 DISTNAME= xfe-1.04
PKGNAME= ${DISTNAME}p0
CATEGORIES= x11 CATEGORIES= x11
HOMEPAGE= http://roland65.free.fr/xfe/ HOMEPAGE= http://roland65.free.fr/xfe/
@ -31,7 +32,7 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
-I${X11BASE}/include \ -I${X11BASE}/include \
-I${X11BASE}/include/freetype2 \ -I${X11BASE}/include/freetype2 \
-I${LOCALBASE}/include/libpng" \ -I${LOCALBASE}/include/libpng" \
LDFLAGS="-L${LOCALBASE}/lib -liconv -lintl \ LDFLAGS="-L${LOCALBASE}/lib \
-L${X11BASE}/lib -lXft" -L${X11BASE}/lib -lXft"
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -1,7 +1,15 @@
$OpenBSD: patch-configure,v 1.1 2007/08/10 12:50:33 ajacoutot Exp $ $OpenBSD: patch-configure,v 1.2 2007/10/16 14:46:46 ajacoutot Exp $
--- configure.orig Fri Jun 15 09:41:13 2007 --- configure.orig Tue Aug 28 10:47:02 2007
+++ configure Tue Jul 17 15:24:54 2007 +++ configure Tue Oct 16 16:35:38 2007
@@ -7523,13 +7523,13 @@ fi @@ -2273,7 +2273,6 @@ _ACEOF
-CXXFLAGS="-O2"
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
@@ -7523,13 +7522,13 @@ fi
else else
# Some library is needed. Try libpthread and libc_r. # Some library is needed. Try libpthread and libc_r.
@ -18,7 +26,7 @@ $OpenBSD: patch-configure,v 1.1 2007/08/10 12:50:33 ajacoutot Exp $
cat >conftest.$ac_ext <<_ACEOF cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */ /* confdefs.h. */
_ACEOF _ACEOF
@@ -7586,8 +7586,8 @@ fi @@ -7586,8 +7585,8 @@ fi
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; } echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
if test $ac_cv_lib_pthread_pthread_kill = yes; then if test $ac_cv_lib_pthread_pthread_kill = yes; then
gl_have_pthread=yes gl_have_pthread=yes
@ -29,18 +37,23 @@ $OpenBSD: patch-configure,v 1.1 2007/08/10 12:50:33 ajacoutot Exp $
fi fi
if test -z "$gl_have_pthread"; then if test -z "$gl_have_pthread"; then
@@ -12100,12 +12100,12 @@ cat >>conftest.$ac_ext <<_ACEOF @@ -14529,7 +14528,7 @@ LIBTHREAD!$LIBTHREAD$ac_delim
#include <libintl.h> LTLIBTHREAD!$LTLIBTHREAD$ac_delim
$gt_revision_test_code LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
extern int _nl_msg_cat_cntr; LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
-extern int *_nl_domain_bindings; -LIBICONV!$LIBICONV$ac_delim
+extern int libintl_nl_domain_bindings; +LIBICONV!$LTLIBICONV$ac_delim
int LTLIBICONV!$LTLIBICONV$ac_delim
main () INTLBISON!$INTLBISON$ac_delim
{ GLIBC21!$GLIBC21$ac_delim
bindtextdomain ("", ""); @@ -14547,8 +14546,8 @@ INSTOBJEXT!$INSTOBJEXT$ac_delim
-return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings GENCAT!$GENCAT$ac_delim
+return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + libintl_nl_domain_bindings INTLOBJS!$INTLOBJS$ac_delim
; INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
return 0; -INTLLIBS!$INTLLIBS$ac_delim
} -LIBINTL!$LIBINTL$ac_delim
+INTLLIBS!$LTLIBINTL$ac_delim
+LIBINTL!$LTLIBINTL$ac_delim
LTLIBINTL!$LTLIBINTL$ac_delim
POSUB!$POSUB$ac_delim
CXXCPP!$CXXCPP$ac_delim