[MacPorts] #16411: jpeg-6b_2 fails to build universal on Tiger/PPC- linking error
MacPorts
noreply at macports.org
Mon Jan 12 12:36:31 PST 2009
#16411: jpeg-6b_2 fails to build universal on Tiger/PPC- linking error
----------------------------------+-----------------------------------------
Reporter: cgtobi@… | Owner: waqar@…
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.6.0
Keywords: jpeg, universal, PPC | Port: jpeg
----------------------------------+-----------------------------------------
Comment(by mcalhoun@…):
I just ran into this problem.[[BR]]
I tried to upgrade jpeg to get a universal build (so while jpeg was
building, a non-universal /opt/local/lib/libjpeg.dylib existed).[[BR]]
At one point in the build process, there is the command:
{{{
/usr/bin/gcc-4.0 -L/opt/local/lib -arch ppc -arch i386 -arch ppc64 -arch
x86_64 -mmacosx-version-min=10.5 -o .libs/cjpeg cjpeg.o rdppm.o rdgif.o
rdtarga.o rdrle.o rdbmp.o rdswitch.o cdjpeg.o -L.libs -ljpeg
}}}
Since -L/opt/local/lib is before -L.libs, the linker finds
/opt/local/lib/libjpeg.dylib (not universal) instead of
.libs/libjpeg.dylib (universal).
Attached is a proposed fix.
It is a long shot, but this may be related to #17910.[[BR]]
If
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib[[BR]]
was in the library search path, then the above command might have found it
as well.
--
Ticket URL: <http://trac.macports.org/ticket/16411#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list