Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Mar 2015 23:02:49 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r382352 - in head/databases/sqlite2: . files
Message-ID:  <201503262302.t2QN2ndq047486@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Thu Mar 26 23:02:48 2015
New Revision: 382352
URL: https://svnweb.freebsd.org/changeset/ports/382352
QAT: https://qat.redports.org/buildarchive/r382352/

Log:
  Fix compiler warnings, i.e., "-lpthread: 'linker' input unused".

Modified:
  head/databases/sqlite2/Makefile
  head/databases/sqlite2/files/patch-Makefile.in

Modified: head/databases/sqlite2/Makefile
==============================================================================
--- head/databases/sqlite2/Makefile	Thu Mar 26 22:59:45 2015	(r382351)
+++ head/databases/sqlite2/Makefile	Thu Mar 26 23:02:48 2015	(r382352)
@@ -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
 

Modified: head/databases/sqlite2/files/patch-Makefile.in
==============================================================================
--- head/databases/sqlite2/files/patch-Makefile.in	Thu Mar 26 22:59:45 2015	(r382351)
+++ head/databases/sqlite2/files/patch-Makefile.in	Thu Mar 26 23:02:48 2015	(r382352)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503262302.t2QN2ndq047486>