Thanks for the tip. It turns out there is already a "do_darwin-shared:" target. It was missing the ${SHARED_LDFLAGS} variable after the ${CC} variable. And the line in Configure that begins with "darwin-ppc-cc" didn't have the -prebind option in the place that would set ${SHARED_LDFLAGS}. I needed to make the change to Makefile.org so that Configure wouldn't overwrite my changes when it regenerated the Makefile.ssl.

After only making those two line changes, my dylib's were prebound. That got Xcode to stop whining.


On Mar 11, 2004, at 9:30 AM, ViSolve OpenSSL Support wrote:


Hello,
 
For OpenSSL,  there is no "-prebind" configure option. You need to edit Makefile.ssl  (as you guessed) under your OS-specific shared section (identified by " do_<OS Name>-shared ")  to add any options for building shared libraries.  For what it is worth, an example is shown below:
 
# ./Configure shared --openssldir=/opt/iexpress <YOUR OS name>
 
Edit the shared section of Makefile.ssl as shown below:
============================
      do_<YOUR OS name>-shared:
      for i in ${SHLIBDIRS}; do \
        if [ "${SHLIBDIRS}" = "ssl" -a -n "$(LIBKRB5)" ]; then \
                libs="$(LIBKRB5) $$libs"; \
        fi; \
        ( set -x; /usr/ccs/bin/ld ${SHARED_LDFLAGS} \
                +vnocompatwarnings \
                 -prebind \
                -b -z +s \
                -o lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \
                +h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \
                -Fl lib$$i.a -ldld -lc ) || exit 1; \
        chmod a=rx lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR}; \
        done
============================
      # gmake
 
Regards,
 
ViSolve Security Consulting Group
 Email: [EMAIL PROTECTED]
 www.visolve.com
 
----- Original Message -----
From: "Joseph Bruni" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 10, 2004 1:56 AM
Subject: adding linker command line options


> I want to be able to add the "-prebind" command line option to the link
> phase when building shared libraries. Is there way to do this from configure
> or do I just hack the Makefile.
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]
>

______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]

Reply via email to