projects
/
trafficserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dce036
)
Fix LDFLAGS usage,
author
Gianfranco Costamagna
<locutusofborg@debian.org>
Sat, 21 May 2022 17:28:31 +0000
(18:28 +0100)
committer
Jean Baptiste Favre
<debian@jbfavre.org>
Sat, 21 May 2022 17:28:31 +0000
(18:28 +0100)
Forwarded: https://github.com/apache/trafficserver/pull/4793
Last-Update: 2019-01-12
Gbp-Pq: Name 0015-as-needed-fix.patch
build/common.m4
patch
|
blob
|
history
diff --git
a/build/common.m4
b/build/common.m4
index 3afda5f2715cb6ea8150bc75547d23d14fc0fdbf..76c49eb4d16a8b5bef5bd2b803b33a10de67dd87 100644
(file)
--- a/
build/common.m4
+++ b/
build/common.m4
@@
-196,17
+196,17
@@
AC_DEFUN([TS_TRY_COMPILE_NO_WARNING],
])
dnl
-dnl TS_LINK_WITH_FLAGS_IFELSE(L
DFLAG
S, FUNCTION-BODY,
+dnl TS_LINK_WITH_FLAGS_IFELSE(L
IB
S, FUNCTION-BODY,
dnl [ACTIONS-IF-LINKS], [ACTIONS-IF-LINK-FAILS])
dnl
dnl Tries a link test with the provided flags.
dnl
AC_DEFUN([TS_LINK_WITH_FLAGS_IFELSE],
-[ats_save_L
DFLAGS=$LDFLAG
S
- L
DFLAGS="$LDFLAG
S $1"
+[ats_save_L
IBS=$LIB
S
+ L
IBS="$LIB
S $1"
AC_LINK_IFELSE([$2],[$3],[$4])
- L
DFLAGS=$ats_save_LDFLAG
S
+ L
IBS=$ats_save_LIB
S
])