Commit 1407f856 authored by Richard Levitte's avatar Richard Levitte
Browse files

Make util/mkrc.pl location agnostic and adapt Makefile.shared



With this, Cygwin and Mingw builds stand a much better chance to be
able to build outside of the source tree with the unified build.

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent cedbb146
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -308,7 +308,7 @@ link_a.cygwin:
		base=; [ $(LIBNAME) = "crypto" ] && base=-Wl,--image-base,0x63000000; \
		base=; [ $(LIBNAME) = "crypto" ] && base=-Wl,--image-base,0x63000000; \
	fi; \
	fi; \
	dll_name=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX; \
	dll_name=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX; \
	$(PERL) util/mkrc.pl $$dll_name | \
	$(PERL) $(SRCDIR)/util/mkrc.pl $$dll_name | \
		$(CROSS_COMPILE)windres $(SHARED_RCFLAGS) -o rc.o; \
		$(CROSS_COMPILE)windres $(SHARED_RCFLAGS) -o rc.o; \
	extras="$$extras rc.o"; \
	extras="$$extras rc.o"; \
	ALLSYMSFLAGS='-Wl,--whole-archive'; \
	ALLSYMSFLAGS='-Wl,--whole-archive'; \
+8 −1
Original line number Original line Diff line number Diff line
#!/bin/env perl
#!/bin/env perl
#
#
open FD,"include/openssl/opensslv.h";

use lib ".";
use configdata;
use File::Spec::Functions;

my $versionfile = catfile($config{sourcedir},"include/openssl/opensslv.h");

open FD, $versionfile or die "Couldn't open include/openssl/opensslv.h: $!\n";
while(<FD>) {
while(<FD>) {
    if (/OPENSSL_VERSION_NUMBER\s+(0x[0-9a-f]+)/i) {
    if (/OPENSSL_VERSION_NUMBER\s+(0x[0-9a-f]+)/i) {
	$ver = hex($1);
	$ver = hex($1);