Begin forwarded message:

From: "Michal Suchanek" <[EMAIL PROTECTED]>
Date: August 10, 2008 4:24:55 AM EDT
To: "Alexander Hansen" <[EMAIL PROTECTED]>
Subject: Re: using system-openssl-dev was Re: fink update-all problem

On 08/08/2008, Alexander Hansen <[EMAIL PROTECTED]> wrote:
For a more authoritative source than just the .info files I checked, here's
text from the DescDetail for system-openssl-dev:

descdetail:
This package is meant to be used by packagers for the purpose of linking
explicitly against the Apple-provided system version of OpenSSL.
.
Maintainers: to use this package when building, you will need to set one
or more of the following:
.
 CPPFLAGS/CFLAGS/CXXFLAGS:
-I/sw/lib/system-openssl/include
 LDFLAGS/LIBS: -L/sw/lib/system-openssl/lib
 PKG_CONFIG_PATH: /sw/lib/system-openssl/lib/pkgconfig

yes, but you really need
-I/sw/lib/system-openssl/include -I/sw/include
and
-L/sw/lib/system-openssl/lib -L/sw/lib

According to the packaging manual fink should do the right thing here
(although there is still no Set command for PKG_CONFIG_PATH).
However, some software might put these extra flags before detected
flags, and some software might do it the other way around. So for some
packages SetXX would work, for some passing --with-openssl-xx might
work, and for some none would work if they put the extra flags after
detected flags, and put flags for some other library before the flags
for openssl.

Assuming the Ruby build system is already patched enough in the
package it should work with:

Build-depends: += system-openssl-dev
SetCPPFLAGS: -I/sw/lib/system-openssl/include
SetLDFLAGS: -L/sw/lib/system-openssl/lib

ConfigureParams: += --with-bundled-md5 --with-bundled-sha1 --with- bundled-rmd160

Watch for the final link link line, -L. should be before -L/sw/lib

I can do some tests later when I get to the mac.

Thanks

Michal

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fink-devel mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel

Reply via email to