$NetBSD: patch-af,v 1.7 2009/05/10 11:24:27 hasso Exp $ --- Makefile.incl.orig 2007-08-30 15:10:20 +0300 +++ Makefile.incl 2009-05-08 12:55:42 +0300 @@ -603,6 +603,30 @@ ifeq (${PLATFORM}, FREEBSD) LD_SODEPDOM = -Wl,-soname,${SO_DEPDOM} endif +#=============== DRAGONFLY SPECIFIC OPTIONS ========================= +ifeq (${PLATFORM}, DRAGONFLY) + PLATFORM_COMPILE_OPTIONS = -D${PLATFORM} + + ifeq (${LIBTYPE},shared) + PLATFORM_COMPILE_OPTIONS += -fPIC + MAKE_SHARED = ${CXX} -D${PLATFORM} -shared -fPIC ${LDFLAGS} + MAKE_SHARED_C = ${CC} -D${PLATFORM} -shared -fPIC ${LDFLAGS} + endif + + ifeq (${TRANSCODER}, ICU) + PLATFORM_COMPILE_OPTIONS += -I/usr/local/include + ALLLIBS = ${LIBS} -L/usr/local/lib -L${ICUROOT} -licuuc -licudata -lgcc + else + ALLLIBS = ${LIBS} + endif + + SHLIBSUFFIX=.so + ICUSHLIBSUFFIX=.so + ## Compiler switch to embed a library name + LD_SONAME = -Wl,-soname,${SO_NAME} + LD_SODEPDOM = -Wl,-soname,${SO_DEPDOM} +endif + #=============== NETBSD SPECIFIC OPTIONS ========================= ifeq (${PLATFORM}, NETBSD) PLATFORM_COMPILE_OPTIONS = -D${PLATFORM} @@ -969,6 +993,10 @@ LINK_LIBNAME=xercesc LIBDEPDOM=libxercesdepdom endif +ifeq (${TRANSCODER}, IconvGNU) + ALLLIBS += -liconv +endif + ###################### A_NAME #################################### # #