$NetBSD: patch-builds_unix_unix-cc.in,v 1.3 2020/06/03 08:40:21 adam Exp $ Provide tag to libtool. Use CFLAGS when compiling executables. --- builds/unix/unix-cc.in.orig 2020-05-04 04:07:22.000000000 +0000 +++ builds/unix/unix-cc.in @@ -95,7 +95,7 @@ ANSIFLAGS := @XX_ANSIFLAGS@ # libtool call is always prepended. # CCraw := $(CC) -override CC := $(LIBTOOL) --mode=compile $(CCraw) +override CC := $(LIBTOOL) --tag=CC --mode=compile $(CCraw) # Resource compiler to use on Cygwin/MinGW, usually windres. # @@ -115,14 +115,14 @@ LIB_CLOCK_GETTIME := @LIB_CLOCK_GETTIME@ CCraw_build := @CC_BUILD@ # native CC of building system E_BUILD := @EXEEXT_BUILD@ # extension for executable on building system EXPORTS_LIST := $(OBJ_DIR)/ftexport.sym -CCexe := $(CCraw_build) # used to compile `apinames' only +CCexe := $(CCraw_build) @CFLAGS@ # used to compile `apinames' only # Library linking # -LINK_LIBRARY = $(LIBTOOL) --mode=link $(CCraw) -o $@ $(OBJECTS_LIST) \ +LINK_LIBRARY = $(LIBTOOL) --tag=CC --mode=link $(CCraw) -o $@ $(OBJECTS_LIST) \ -rpath $(libdir) -version-info $(version_info) \ $(LDFLAGS) -no-undefined \ - -export-symbols $(EXPORTS_LIST) + # -export-symbols $(EXPORTS_LIST) # EOF