Commit 1a0e5b05 authored by Mark Andrews's avatar Mark Andrews
Browse files

address linking issues

parent 983df82b
......@@ -40,16 +40,20 @@ SRCS = db.c driver.c instance.c \
OBJS = db.@O@ driver.@O@ instance.@O@ \
lock.@O@ log.@O@ syncptr.@O@ zone.@O@
TARGETS = sample.@SO@
TARGETS = lib/sample.@SO@
@BIND9_MAKE_RULES@
CFLAGS = @CFLAGS@ @SO_CFLAGS@
SO_LDFLAGS = @LDFLAGS@ @SO_LDFLAGS@
lib/sample.@SO@: sample.@SO@
$(SHELL) ${top_srcdir}/mkinstalldirs `pwd`/lib
${LIBTOOL_MODE_INSTALL} ${INSTALL} sample.@SO@ `pwd`/lib
sample.@SO@: ${OBJS}
${LIBTOOL_MODE_LINK} @SO_LD@ ${SO_LDFLAGS} -o $@ ${OBJS} \
${DNSLIBS} ${ISCLIBS} @DNS_CRYPTO_LIBS@ ${LIBS}
clean distclean::
rm -f ${OBJS} sample.so
rm -f ${OBJS} sample.so lib/sample.so
......@@ -38,5 +38,5 @@ controls {
inet 10.53.0.1 port 9953 allow { any; } keys { rndc_key; };
};
dyndb sample "../driver/sample.so" { ipv4.example.nil. in-addr.arpa. };
dyndb sample2 "../driver/sample.so" { ipv6.example.nil. 8.b.d.0.1.0.0.2.ip6.arpa. };
dyndb sample "../driver/lib/sample.so" { ipv4.example.nil. in-addr.arpa. };
dyndb sample2 "../driver/lib/sample.so" { ipv6.example.nil. 8.b.d.0.1.0.0.2.ip6.arpa. };
......@@ -20987,8 +20987,14 @@ if test "$dlopen" = "yes"; then
;;
*-freebsd*|*-openbsd*)
SO_CFLAGS="-fpic"
SO_LDFLAGS="-shared"
SO_LD="${CC}"
elf=`${CC} -dM -E - < /dev/null | grep __ELF__`
if test "$use_libtool" = "yes"; then
SO_LDFLAGS="-Xcompiler -shared"
SO_LD="${CC}"
else
SO_LDFLAGS="-shared"
SO_LD="${CC}"
fi
;;
*-netbsd*)
SO_CFLAGS="-fpic"
......
......@@ -4374,8 +4374,14 @@ if test "$dlopen" = "yes"; then
;;
*-freebsd*|*-openbsd*)
SO_CFLAGS="-fpic"
SO_LDFLAGS="-shared"
SO_LD="${CC}"
elf=`${CC} -dM -E - < /dev/null | grep __ELF__`
if test "$use_libtool" = "yes"; then
SO_LDFLAGS="-Xcompiler -shared"
SO_LD="${CC}"
else
SO_LDFLAGS="-shared"
SO_LD="${CC}"
fi
;;
*-netbsd*)
SO_CFLAGS="-fpic"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment