[GRASS-dev] Re: [GRASS GIS] #303: new ffmpeg includes layout
GRASS GIS
trac at osgeo.org
Sun Jan 25 19:01:50 EST 2009
#303: new ffmpeg includes layout
------------------------+---------------------------------------------------
Reporter: kyngchaos | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: Raster | Version: svn-develbranch6
Resolution: | Keywords:
Platform: All | Cpu: All
------------------------+---------------------------------------------------
Comment (by kyngchaos):
Ugh, a nasty new wrinkle on the OSX side. Due to the -mdynamic-no-pic
flag now used in a default ffmpeg build on OSX, dynamic libraries that
link the ffmpeg static libs must use the "-read_only_relocs suppress"
flag. Programs don't need this flag (I don't know what would happen if
they did, but it looks like nviz only links the ogsf library and not
ffmpeg directly).
Even with this flag, ogsf spits out a zillion warnings about "codegen" in
the ffmpeg libs. But at least it links.
I kind of wonder if the ffmpeg developers intend ffmpeg libs to be linked
only to programs, and not to other libraries. From the gcc docs:
{{{
-mdynamic-no-pic
On Darwin and Mac OS X systems, compile code so that it is not
relocatable, but that its external references are relocatable. The
resulting code is suitable for applications, but not shared
libraries.
}}}
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/303#comment:9>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list