Fix compiler warnings, i.e., "-lpthread: 'linker' input unused".
This commit is contained in:
parent
ff9e0a2850
commit
86aaf8b926
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=382352
2 changed files with 14 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue