]> granicus.if.org Git - curl/commitdiff
makefile.m32: allow to pass .dll/.exe-specific LDFLAGS
authorViktor Szakats <vszakats@users.noreply.github.com>
Tue, 1 Mar 2016 19:50:13 +0000 (20:50 +0100)
committerJay Satiro <raysatiro@yahoo.com>
Tue, 1 Mar 2016 22:46:16 +0000 (17:46 -0500)
using envvars `CURL_LDFLAG_EXTRAS_DLL` and
`CURL_LDFLAG_EXTRAS_EXE` respectively. This
is useful f.e. to pass ASLR-related extra
options, that are required to make this
feature work when using the mingw toolchain.

Ref: https://github.com/curl/curl/pull/670#issuecomment-190863985

Closes https://github.com/curl/curl/pull/689

lib/Makefile.m32
src/Makefile.m32

index fbc38de21643ba43724902080f5cad766fb7034b..eeb4311baaf3adae052cbc39ff488418adf0b8f1 100644 (file)
@@ -80,7 +80,7 @@ CC    = $(CROSSPREFIX)gcc
 CFLAGS = $(CURL_CFLAG_EXTRAS) -g -O2 -Wall
 CFLAGS += -fno-strict-aliasing
 # comment LDFLAGS below to keep debug info
-LDFLAGS        = $(CURL_LDFLAG_EXTRAS) -s
+LDFLAGS        = $(CURL_LDFLAG_EXTRAS) $(CURL_LDFLAG_EXTRAS_DLL) -s
 AR     = $(CROSSPREFIX)ar
 RANLIB = $(CROSSPREFIX)ranlib
 RC     = $(CROSSPREFIX)windres
index 64c65a6f1468c1dc430b8e227e136c99d42df82a..a6a5b7733582bf43f5aed14b82f99745a6424f90 100644 (file)
@@ -92,7 +92,7 @@ CC    = $(CROSSPREFIX)gcc
 CFLAGS = $(CURL_CFLAG_EXTRAS) -g -O2 -Wall
 CFLAGS += -fno-strict-aliasing
 # comment LDFLAGS below to keep debug info
-LDFLAGS        = $(CURL_LDFLAG_EXTRAS) -s
+LDFLAGS        = $(CURL_LDFLAG_EXTRAS) $(CURL_LDFLAG_EXTRAS_EXE) -s
 AR     = $(CROSSPREFIX)ar
 RC     = $(CROSSPREFIX)windres
 RCFLAGS        = --include-dir=$(PROOT)/include -O COFF