pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/53411: net/bind910 fails on mac68k
This same problem is still present in the net/bind914 on the i386
(32-bit) environment. On amd64 you will not see it.
At least on i386 you can make it work by using gcc5-libs package,
which contains the libatomic.so. You do that by adding following patch
to the net/bind914/options.mk and then adding
PKG_OPTIONS.bind914=latomic
to mk.conf.
I added separate option for latomic, mostly because I am not sure
if this problem really is in every 32-bit platform or not, and how to
perperly test whether this platform is 32-bit or not. Compiling the
gcc5-libs takes quite a lot of time, so we do not want to do that
unless it is really needed...
Index: options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/net/bind914/options.mk,v
retrieving revision 1.2
diff -u -u -r1.2 options.mk
--- options.mk 14 Jun 2019 16:14:05 -0000 1.2
+++ options.mk 1 Nov 2019 18:48:02 -0000
@@ -5,6 +5,7 @@
PKG_SUPPORTED_OPTIONS+= bind-json-statistics-server blacklist
PKG_SUPPORTED_OPTIONS+= threads readline mysql pgsql ldap dlz-filesystem
PKG_SUPPORTED_OPTIONS+= geoip tuning dnstap # pkcs11
+PKG_SUPPORTED_OPTIONS+= latomic
PKG_SUGGESTED_OPTIONS+= readline
PLIST_VARS+= dnstap pkcs11
@@ -139,3 +140,11 @@
# to be changed so that the two can cooperate.
CONFIGURE_ENV+= STD_CDEFINES=-DDIG_SIGCHASE=1
.endif
+
+###
+### -latomic requires libraries from gcc5-libs
+###
+.if !empty(PKG_OPTIONS:Mlatomic)
+.include "../../lang/gcc5-libs/buildlink3.mk"
+LDFLAGS+= -L${BUILDLINK_PREFIX.gcc5-libs}/gcc5/${MACHINE_GNU_PLATFORM}/lib ${LINKER_RPATH_FLAG}${BUILDLINK_PREFIX.gcc5-libs}/gcc5/${MACHINE_GNU_PLATFORM}/lib
+.endif
--
kivinen%iki.fi@localhost
Home |
Main Index |
Thread Index |
Old Index