> http://build-failures.rhaalovely.net/mips64/2020-04-02/mail/dspam%2C-main.log
(same on macppc)

It fails due to some undefined references to libiconv symbols, so i
changed LDFLAGS for clang archs using ld.bfd, and it builds on macppc
[0].

Safety REVISION bump for mips64 added.

Comments/feedback are welcome,

Charlène.


[0] https://bin.charlenew.xyz/macppc/paths/mail/dspam.log


Index: Makefile
===================================================================
RCS file: /cvs/ports/mail/dspam/Makefile,v
retrieving revision 1.67
diff -u -p -u -p -r1.67 Makefile
--- Makefile    17 Jul 2019 14:46:33 -0000      1.67
+++ Makefile    21 Apr 2020 20:10:55 -0000
@@ -6,9 +6,9 @@ COMMENT-mysql = MySQL driver for dspam
 
 VERSION =      3.10.2
 DISTNAME =     dspam-${VERSION}
-REVISION-main =        10
-REVISION-mysql = 8
-REVISION-pgsql = 7
+REVISION-main =                11
+REVISION-mysql =       9
+REVISION-pgsql =       8
 
 PKGNAME-main = ${PKGNAME}
 .for p in pgsql mysql
@@ -100,6 +100,12 @@ CONFIGURE_ARGS +=  --disable-domain-scale
 CONFIGURE_ARGS +=      --enable-large-scale
 .else
 CONFIGURE_ARGS +=      --disable-large-scale
+.endif
+
+# Fix undefined reference errors on clang+ld.bfd archs
+.include <bsd.port.arch.mk>
+.if ${PROPERTIES:Mclang} && !${PROPERTIES:Mlld}
+CONFIGURE_ENV +=       LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
 .endif
 
 post-install:

Reply via email to