source:
scripts/patches/openssl-0.9.7f-allow_lib64.patch@
f2d3163
Last change on this file since f2d3163 was 7f65c0e, checked in by , 19 years ago | |
---|---|
|
|
File size: 5.4 KB |
-
Makefile.org
Submitted By: Ryan Oliver <ryan.oliver AT pha.com.au> Date: 2005-03-28 Initial Package Version: 0.9.7f (need to see if this applies to 0.9.7e) Origin: Ryan Oliver Description: This patch allows you to alter the default library install directory (ie: */lib) to whatever is required (eg: */lib64). Adds env var LIBDIR to the openssl Makefile to override the default (lib) eg: for a biarch x86_64 system invoke make, make test and make install make LIBDIR=lib64 ... diff -uNr openssl-0.9.7f-orig/Makefile.org openssl-0.9.7f/Makefile.org
old new 71 71 TAR= tar 72 72 TARFLAGS= --no-recursion 73 73 MAKEDEPPROG=makedepend 74 LIBDIR=lib 74 75 75 76 # We let the C compiler driver to take care of .s files. This is done in 76 77 # order to be excused from maintaining a separate set of architecture … … 324 325 ( set -x; ${CC} --verbose -dynamiclib -o lib$$i${SHLIB_EXT} \ 325 326 lib$$i.a $$libs -all_load -current_version ${SHLIB_MAJOR}.${SHLIB_MINOR} \ 326 327 -compatibility_version ${SHLIB_MAJOR}.`echo ${SHLIB_MINOR} | cut -d. -f1` \ 327 -install_name ${INSTALLTOP}/ lib/lib$$i${SHLIB_EXT} ) || exit 1; \328 -install_name ${INSTALLTOP}/$(LIBDIR)/lib$$i${SHLIB_EXT} ) || exit 1; \ 328 329 libs="-l`basename $$i${SHLIB_EXT} .dylib` $$libs"; \ 329 330 echo "" ; \ 330 331 done … … 622 623 openssl.pc: Makefile 623 624 @ ( echo 'prefix=$(INSTALLTOP)'; \ 624 625 echo 'exec_prefix=$${prefix}'; \ 625 echo 'libdir=$${exec_prefix}/ lib'; \626 echo 'libdir=$${exec_prefix}/$(LIBDIR)'; \ 626 627 echo 'includedir=$${prefix}/include'; \ 627 628 echo ''; \ 628 629 echo 'Name: OpenSSL'; \ … … 802 803 803 804 install_sw: 804 805 @$(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/bin \ 805 $(INSTALL_PREFIX)$(INSTALLTOP)/ lib\806 $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/pkgconfig \806 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR) \ 807 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/pkgconfig \ 807 808 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl \ 808 809 $(INSTALL_PREFIX)$(OPENSSLDIR)/misc \ 809 810 $(INSTALL_PREFIX)$(OPENSSLDIR)/certs \ … … 824 825 do \ 825 826 if [ -f "$$i" ]; then \ 826 827 ( echo installing $$i; \ 827 cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/$$i.new; \828 cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i.new; \ 828 829 if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \ 829 830 : ; \ 830 831 else \ 831 $(RANLIB) $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/$$i.new; \832 $(RANLIB) $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i.new; \ 832 833 fi; \ 833 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/$$i.new; \834 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i ); \834 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i.new; \ 835 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i ); \ 835 836 fi; \ 836 837 done; 837 838 @if [ -n "$(SHARED_LIBS)" ]; then \ … … 841 842 if [ -f "$$i" -o -f "$$i.a" ]; then \ 842 843 ( echo installing $$i; \ 843 844 if [ "$(PLATFORM)" != "Cygwin" ]; then \ 844 cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/$$i.new; \845 chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/$$i.new; \846 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i; \845 cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i.new; \ 846 chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i.new; \ 847 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i; \ 847 848 else \ 848 849 c=`echo $$i | sed 's/^lib\(.*\)\.dll/cyg\1-$(SHLIB_VERSION_NUMBER).dll/'`; \ 849 850 cp $$c $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c.new; \ 850 851 chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c.new; \ 851 852 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c.new $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c; \ 852 cp $$i.a $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/$$i.a.new; \853 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/$$i.a.new; \854 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/$$i.a.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.a; \853 cp $$i.a $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i.a.new; \ 854 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i.a.new; \ 855 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i.a.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i.a; \ 855 856 fi ); \ 856 857 fi; \ 857 858 done; \ 858 859 ( here="`pwd`"; \ 859 cd $(INSTALL_PREFIX)$(INSTALLTOP)/ lib; \860 cd $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR); \ 860 861 set $(MAKE); \ 861 862 $$1 -f $$here/Makefile link-shared ); \ 862 863 if [ "$(INSTALLTOP)" != "/usr" ]; then \ … … 870 871 do \ 871 872 if [ -f "$$i" ]; then \ 872 873 ( echo installing $$i; \ 873 cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/$$i.new; \874 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/$$i.new; \875 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i ); \874 cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i.new; \ 875 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i.new; \ 876 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i ); \ 876 877 fi; \ 877 878 done; 878 cp openssl.pc $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/pkgconfig879 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/pkgconfig/openssl.pc879 cp openssl.pc $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/pkgconfig 880 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/pkgconfig/openssl.pc 880 881 881 882 install_docs: 882 883 @$(PERL) $(TOP)/util/mkdir-p.pl \
Note:
See TracBrowser
for help on using the repository browser.