Ticket #3652: libavcodec_gcc4.patch

File libavcodec_gcc4.patch, 678 bytes (added by aljen, 11 years ago)
  • src/add-ons/media/plugins/avcodec/libavcodec/Jamfile

     
    1010TARGET_WARNING_CCFLAGS = [ FFilter $(TARGET_WARNING_CCFLAGS)
    1111    : -Wall -Wmissing-prototypes -Wsign-compare -Wpointer-arith ] ;
    1212
    13 SubDirCcFlags -fomit-frame-pointer -DPIC ;
     13if $(HAIKU_GCC_VERSION[1]) >= 3 {
     14    SubDirCcFlags -fomit-frame-pointer -fno-pic ;
     15} else {
     16    SubDirCcFlags -fomit-frame-pointer -DPIC ;
     17}
    1418SubDirCcFlags -DHAVE_AV_CONFIG_H=1 ;
    1519
    1620StaticLibrary libavcodec.a :