diff options
-rw-r--r-- | databases/sqlite2/Makefile | 4 | ||||
-rw-r--r-- | databases/sqlite2/files/patch-Makefile.in | 13 |
2 files changed, 14 insertions, 3 deletions
diff --git a/databases/sqlite2/Makefile b/databases/sqlite2/Makefile index eab7db7..ce6b084 100644 --- a/databases/sqlite2/Makefile +++ b/databases/sqlite2/Makefile @@ -65,7 +65,9 @@ post-patch: @${ECHO} "" > ${WRKSRC}/freebsd.hints .endif .if ${PORT_OPTIONS:MTHREADS} - @${ECHO} "config_TARGET_CFLAGS=\"-DTHREADSAFE=1 -lpthread\"" \ + @${ECHO} "config_TARGET_CFLAGS=\"-DTHREADSAFE=1\"" \ + >> ${WRKSRC}/freebsd.hints + @${ECHO} "config_TARGET_LIBS=\"-lpthread\"" \ >> ${WRKSRC}/freebsd.hints .endif diff --git a/databases/sqlite2/files/patch-Makefile.in b/databases/sqlite2/files/patch-Makefile.in index ad1b8ff..59f1598 100644 --- a/databases/sqlite2/files/patch-Makefile.in +++ b/databases/sqlite2/files/patch-Makefile.in @@ -1,5 +1,14 @@ ---- Makefile.in.orig Sat Mar 27 08:16:32 2004 -+++ Makefile.in Sun Nov 21 04:32:00 2004 +--- Makefile.in.orig 2005-04-23 18:43:23.000000000 -0400 ++++ Makefile.in 2015-03-26 18:36:07.358178000 -0400 +@@ -38,7 +38,7 @@ + + # libtool compile/link/install + LTCOMPILE = $(LIBTOOL) --mode=compile $(TCC) +-LTLINK = $(LIBTOOL) --mode=link $(TCC) ++LTLINK = $(LIBTOOL) --mode=link $(TCC) @TARGET_LIBS@ + LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL) + + # Compiler options needed for programs that use the TCL library. @@ -471,8 +471,12 @@ $(LTINSTALL) sqlite $(DESTDIR)$(exec_prefix)/bin $(INSTALL) -d $(DESTDIR)$(prefix)/include |