mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
build: explain current role of LIBS in our Makefile.am files
BLANK_AT_MAKETIME may be used in our Makefile.am files to blank LIBS variable used in generated makefile at makefile processing time. Doing this functionally prevents LIBS from being used for all link targets in given makefile.
This commit is contained in:
parent
8b02afd9a9
commit
b908376bef
@ -3364,12 +3364,11 @@ LIBCURL_LIBS=$LIBS
|
|||||||
AC_SUBST(LIBCURL_LIBS)
|
AC_SUBST(LIBCURL_LIBS)
|
||||||
AC_SUBST(CURL_NETWORK_LIBS)
|
AC_SUBST(CURL_NETWORK_LIBS)
|
||||||
AC_SUBST(CURL_NETWORK_AND_TIME_LIBS)
|
AC_SUBST(CURL_NETWORK_AND_TIME_LIBS)
|
||||||
dnl LIBS is a magic variable that's used for every link
|
|
||||||
|
|
||||||
dnl BLANK_AT_MAKETIME might be used in some of our Makefile.am files to
|
dnl BLANK_AT_MAKETIME may be used in our Makefile.am files to blank
|
||||||
dnl blank LIBS variable used in generated makefile at makefile processing
|
dnl LIBS variable used in generated makefile at makefile processing
|
||||||
dnl time. Our test server's Makefile.am uses this to prevent global LIBS
|
dnl time. Doing this functionally prevents LIBS from being used for
|
||||||
dnl from being used for any test server build target.
|
dnl all link targets in given makefile.
|
||||||
BLANK_AT_MAKETIME=
|
BLANK_AT_MAKETIME=
|
||||||
AC_SUBST(BLANK_AT_MAKETIME)
|
AC_SUBST(BLANK_AT_MAKETIME)
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ if USE_CPPFLAG_CURL_STATICLIB
|
|||||||
AM_CPPFLAGS += -DCURL_STATICLIB
|
AM_CPPFLAGS += -DCURL_STATICLIB
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Prevent global LIBS from influencing examples build targets
|
# Prevent LIBS from being used for all link targets
|
||||||
LIBS = $(BLANK_AT_MAKETIME)
|
LIBS = $(BLANK_AT_MAKETIME)
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
@ -132,7 +132,7 @@ if VERSIONED_SYMBOLS
|
|||||||
VERSIONED_SYMBOLS = -Wl,--version-script=libcurl.vers
|
VERSIONED_SYMBOLS = -Wl,--version-script=libcurl.vers
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Prevent global LIBS from influencing lib build targets
|
# Prevent LIBS from being used for all link targets
|
||||||
LIBS = $(BLANK_AT_MAKETIME)
|
LIBS = $(BLANK_AT_MAKETIME)
|
||||||
|
|
||||||
libcurl_la_LDFLAGS = $(UNDEF) $(VERSIONINFO) $(MIMPURE) $(VERSIONED_SYMBOLS) $(LIBCURL_LIBS)
|
libcurl_la_LDFLAGS = $(UNDEF) $(VERSIONINFO) $(MIMPURE) $(VERSIONED_SYMBOLS) $(LIBCURL_LIBS)
|
||||||
|
@ -54,7 +54,7 @@ include Makefile.inc
|
|||||||
# This might hold -Werror
|
# This might hold -Werror
|
||||||
CFLAGS += @CURL_CFLAG_EXTRAS@ @LIBMETALINK_CFLAGS@
|
CFLAGS += @CURL_CFLAG_EXTRAS@ @LIBMETALINK_CFLAGS@
|
||||||
|
|
||||||
# Prevent global LIBS from influencing src build targets
|
# Prevent LIBS from being used for all link targets
|
||||||
LIBS = $(BLANK_AT_MAKETIME)
|
LIBS = $(BLANK_AT_MAKETIME)
|
||||||
|
|
||||||
if USE_EXPLICIT_LIB_DEPS
|
if USE_EXPLICIT_LIB_DEPS
|
||||||
|
@ -55,8 +55,7 @@ test1022.pl Makefile.inc notexists.pl
|
|||||||
|
|
||||||
CFLAG_CURL_SYMBOL_HIDING = @CFLAG_CURL_SYMBOL_HIDING@
|
CFLAG_CURL_SYMBOL_HIDING = @CFLAG_CURL_SYMBOL_HIDING@
|
||||||
|
|
||||||
# Prevent global LIBS from influencing libtest build targets
|
# Prevent LIBS from being used for all link targets
|
||||||
BLANK_AT_MAKETIME = @BLANK_AT_MAKETIME@
|
|
||||||
LIBS = $(BLANK_AT_MAKETIME)
|
LIBS = $(BLANK_AT_MAKETIME)
|
||||||
|
|
||||||
if USE_EXPLICIT_LIB_DEPS
|
if USE_EXPLICIT_LIB_DEPS
|
||||||
|
@ -50,8 +50,7 @@ AM_CPPFLAGS = -I$(top_builddir)/include/curl \
|
|||||||
-I$(top_srcdir)/lib
|
-I$(top_srcdir)/lib
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Prevent global LIBS from influencing test server build targets
|
# Prevent LIBS from being used for all link targets
|
||||||
BLANK_AT_MAKETIME = @BLANK_AT_MAKETIME@
|
|
||||||
LIBS = $(BLANK_AT_MAKETIME)
|
LIBS = $(BLANK_AT_MAKETIME)
|
||||||
|
|
||||||
if DOING_NATIVE_WINDOWS
|
if DOING_NATIVE_WINDOWS
|
||||||
|
@ -54,7 +54,10 @@ endif
|
|||||||
|
|
||||||
EXTRA_DIST = Makefile.inc
|
EXTRA_DIST = Makefile.inc
|
||||||
|
|
||||||
LDADD = $(top_builddir)/lib/libcurlu.la @LDFLAGS@ @LIBCURL_LIBS@ @LIBS@
|
# Prevent LIBS from being used for all link targets
|
||||||
|
LIBS = $(BLANK_AT_MAKETIME)
|
||||||
|
|
||||||
|
LDADD = $(top_builddir)/lib/libcurlu.la @LDFLAGS@ @LIBCURL_LIBS@
|
||||||
DEPENDENCIES = $(top_builddir)/lib/libcurlu.la
|
DEPENDENCIES = $(top_builddir)/lib/libcurlu.la
|
||||||
AM_CPPFLAGS += -DUNITTESTS
|
AM_CPPFLAGS += -DUNITTESTS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user