source:
scripts/patches/openssl-0.9.7d-allow_lib64.patch@
8dc088d
Last change on this file since 8dc088d was 7f65c0e, checked in by , 19 years ago | |
---|---|
|
|
File size: 5.0 KB |
-
Makefile.org
Submitted By: Ryan Oliver <ryan.oliver AT pha.com.au> Date: 2004-10-24 Initial Package Version: 0.9.7d 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.7d-orig/Makefile.org openssl-0.9.7d/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 … … 302 303 ( set -x; ${CC} --verbose -dynamiclib -o lib$$i${SHLIB_EXT} \ 303 304 lib$$i.a $$libs -all_load -current_version ${SHLIB_MAJOR}.${SHLIB_MINOR} \ 304 305 -compatibility_version ${SHLIB_MAJOR}.`echo ${SHLIB_MINOR} | cut -d. -f1` \ 305 -install_name ${INSTALLTOP}/ lib/lib$$i${SHLIB_EXT} ) || exit 1; \306 -install_name ${INSTALLTOP}/$(LIBDIR)/lib$$i${SHLIB_EXT} ) || exit 1; \ 306 307 libs="-l`basename $$i${SHLIB_EXT} .dylib` $$libs"; \ 307 308 echo "" ; \ 308 309 done … … 580 581 openssl.pc: Makefile.ssl 581 582 @ ( echo 'prefix=$(INSTALLTOP)'; \ 582 583 echo 'exec_prefix=$${prefix}'; \ 583 echo 'libdir=$${exec_prefix}/ lib'; \584 echo 'libdir=$${exec_prefix}/$(LIBDIR)'; \ 584 585 echo 'includedir=$${prefix}/include'; \ 585 586 echo ''; \ 586 587 echo 'Name: OpenSSL'; \ … … 772 773 773 774 install: all install_docs 774 775 @$(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/bin \ 775 $(INSTALL_PREFIX)$(INSTALLTOP)/ lib\776 $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/pkgconfig \776 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR) \ 777 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/pkgconfig \ 777 778 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl \ 778 779 $(INSTALL_PREFIX)$(OPENSSLDIR)/misc \ 779 780 $(INSTALL_PREFIX)$(OPENSSLDIR)/certs \ 780 781 $(INSTALL_PREFIX)$(OPENSSLDIR)/private \ 781 $(INSTALL_PREFIX)$(OPENSSLDIR)/ lib782 $(INSTALL_PREFIX)$(OPENSSLDIR)/$(LIBDIR) 782 783 @for i in $(EXHEADER) ;\ 783 784 do \ 784 785 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ … … 795 796 do \ 796 797 if [ -f "$$i" ]; then \ 797 798 ( echo installing $$i; \ 798 cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/$$i.new; \799 $(RANLIB) $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/$$i.new; \800 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/$$i.new; \801 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i ); \799 cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i.new; \ 800 $(RANLIB) $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i.new; \ 801 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i.new; \ 802 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i ); \ 802 803 fi; \ 803 804 done; 804 805 @if [ -n "$(SHARED_LIBS)" ]; then \ … … 808 809 if [ -f "$$i" -o -f "$$i.a" ]; then \ 809 810 ( echo installing $$i; \ 810 811 if [ "$(PLATFORM)" != "Cygwin" ]; then \ 811 cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/$$i.new; \812 chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/$$i.new; \813 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i; \812 cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i.new; \ 813 chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i.new; \ 814 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i; \ 814 815 else \ 815 816 c=`echo $$i | sed 's/^lib\(.*\)\.dll/cyg\1-$(SHLIB_VERSION_NUMBER).dll/'`; \ 816 817 cp $$c $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c.new; \ 817 818 chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c.new; \ 818 819 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c.new $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c; \ 819 cp $$i.a $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/$$i.a.new; \820 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/$$i.a.new; \821 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/$$i.a.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.a; \820 cp $$i.a $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i.a.new; \ 821 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i.a.new; \ 822 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i.a.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/$$i.a; \ 822 823 fi ); \ 823 824 fi; \ 824 825 done; \ 825 826 ( here="`pwd`"; \ 826 cd $(INSTALL_PREFIX)$(INSTALLTOP)/ lib; \827 cd $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR); \ 827 828 set $(MAKE); \ 828 829 $$1 -f $$here/Makefile link-shared ); \ 829 830 if [ "$(INSTALLTOP)" != "/usr" ]; then \ … … 833 834 sed -e '1,/^$$/d' doc/openssl-shared.txt; \ 834 835 fi; \ 835 836 fi 836 cp openssl.pc $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/pkgconfig837 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/ lib/pkgconfig/openssl.pc837 cp openssl.pc $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/pkgconfig 838 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/pkgconfig/openssl.pc 838 839 839 840 install_docs: 840 841 @$(PERL) $(TOP)/util/mkdir-p.pl \
Note:
See TracBrowser
for help on using the repository browser.