$NetBSD: patch-al,v 1.9 2008/02/23 05:16:34 obache Exp $ --- src/Configure.orig 2008-02-23 04:22:55.000000000 +0000 +++ src/Configure @@ -466,6 +466,14 @@ case "$PLAT" in DBM_LIB="" DB_LIB="" ;; + *-dragonfly*) + OS="DragonFly" + DEF_WANTHSREGEX=no + CFLAGS="$CFLAGS -funsigned-char" + LIBS="$LIBS -lcrypt" + DBM_LIB="" + DB_LIB="" + ;; *-openbsd*) OS='OpenBSD' DBM_LIB="" @@ -1111,6 +1119,14 @@ if [ "x$using_shlib" = "x1" ] ; then esac LDFLAGS_MOD_SHLIB=$LDFLAGS_SHLIB ;; + *-dragonfly*) + LD_SHLIB="gcc" + CFLAGS_SHLIB="-fPIC -DPIC" + LDFLAGS_SHLIB="-shared" + LDFLAGS_SHLIB_EXPORT="-Wl,-E" + LDFLAGS_MOD_SHLIB=$LDFLAGS_SHLIB + SHLIB_SUFFIX_DEPTH=2 + ;; *-netbsd*) CFLAGS_SHLIB="-fPIC -DPIC" if echo __ELF__ | ${CC} -E - | grep -q __ELF__; then