diff options
author | Richard Levitte <levitte@openssl.org> | 2016-02-05 15:17:33 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-02-11 16:50:01 +0100 |
commit | 64c443e3f0057946ddd8f37a36821a7f9c0e0493 (patch) | |
tree | 1b27d25b016d1625d67e99c144f9d61405ee6a60 /Makefile.shared | |
parent | Modernise the mingw cflags and ldflags (diff) | |
download | openssl-64c443e3f0057946ddd8f37a36821a7f9c0e0493.tar.xz openssl-64c443e3f0057946ddd8f37a36821a7f9c0e0493.zip |
Add support for shared_rcflag, useful for windres (Cygwin and Mingw)
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'Makefile.shared')
-rw-r--r-- | Makefile.shared | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.shared b/Makefile.shared index a474f16916..29e180845a 100644 --- a/Makefile.shared +++ b/Makefile.shared @@ -14,6 +14,10 @@ CFLAGS=$(CFLAG) LDFLAGS=$(LDFLAG) SHARED_LDFLAGS=$(SHARED_LDFLAG) +# SHARED_RCFLAGS are flags used with windres, i.e. when build for Cygwin +# or Mingw. +SHARED_RCFLAGS=$(SHARED_RCFLAG) + NM=nm # LIBNAME contains just the name of the library, without prefix ("lib" @@ -305,7 +309,7 @@ link_a.cygwin: fi; \ dll_name=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX; \ $(PERL) util/mkrc.pl $$dll_name | \ - $(CROSS_COMPILE)windres -o rc.o; \ + $(CROSS_COMPILE)windres $(SHARED_RCFLAGS) -o rc.o; \ extras="$$extras rc.o"; \ ALLSYMSFLAGS='-Wl,--whole-archive'; \ NOALLSYMSFLAGS='-Wl,--no-whole-archive'; \ |