Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#31888 closed enhancement (fixed)

xercesc3 @3.1.1 doesn't build static libraries

Reported by: weltall2@… Owned by: nerdling (Jeremy Lavergne)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: haspatch Cc: scantor (Scott Cantor)
Port: xercesc3

Description

Currently the port explicitly declares --disable-static. I've tried to remove it on macosx 10.4 (with the last version of xcode compatible with it) and put, instead, --enable-static and it worked well. Got the static library and using it worked well. So it might be nice to enable building of static libraries of this. Thanks

Attachments (1)

patch (489 bytes) - added by weltall2@… 12 years ago.
patch replacing disable with enable

Download all attachments as: .zip

Change History (10)

Changed 12 years ago by weltall2@…

Attachment: patch added

patch replacing disable with enable

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added

The port's revision would also have to be increased.

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: scantor@… added
Owner: changed from macports-tickets@… to snc@…

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

The patch seems to work for me on Snow Leopard too.

comment:4 Changed 12 years ago by scantor (Scott Cantor)

I wouldn't think Macports would want any static libraries built, since that makes updating dependent apps impossible without rebuilding them, but whatever the convention is...

comment:5 Changed 12 years ago by nerdling (Jeremy Lavergne)

Static by default isn't the convention. We can perhaps add a variant that allows static.

comment:6 Changed 12 years ago by weltall2@…

well i didn't mean only static but static+dynamic which is what happens (with the patch it's actually what happens when removing the --disable-static too) for most libs I've installed so far including curl freetype ftgl png jpeg icu openssl GLEW lua sdl vorbis speex ogg mng zlib and others. Then i don't know if something frequent on pretty basic libs is deprecated (even though they have been updated several times in the past and always provided dynamic and static versions)

comment:7 Changed 12 years ago by nerdling (Jeremy Lavergne)

Status: newassigned

comment:8 Changed 12 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: assignedclosed

Ah, I see, in addition to. Alrighty, they're enabled now, r87098.

comment:9 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

It is in fact MacPorts convention to build both static and dynamic libraries, if possible.

Revision increase was forgotten; done in r87108.

Note: See TracTickets for help on using tickets.