Changeset 110312


Ignore:
Timestamp:
Aug 29, 2013, 9:34:34 PM (6 years ago)
Author:
blair@…
Message:

zeroc-ice35: fix broken binaries that cannot find shared libraries.

The build system has changed such that LDPLATFORMFLAGS must be set by
Ice's build system, otherwise, the binaries cannot find the shared libraries.

In Ice 3.4, it creates

$ otool -L /opt/local/bin/slice2cpp
/opt/local/bin/slice2cpp:

/opt/local/lib/libSlice.34.dylib (compatibility version 0.0.0, current version 0.0.0)
/opt/local/lib/libIceUtil.34.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0)

In Ice 3.5, it creates

$ otool -L /opt/local/bin/slice2cpp
/opt/local/bin/slice2cpp:

@rpath/libSlice.35.dylib (compatibility version 0.0.0, current version 0.0.0)
@rpath/libZerocIceUtil.35.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0)

The @rpath/libSlice.35.dylib now needs the proper LDFLAGS to be set,
which are missing when the Portfile clears LDPLATFORMFLAGS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/zeroc-ice35/Portfile

    r104127 r110312  
    66name            zeroc-ice35
    77version         3.5.0
     8revision        1
    89set branch      [join [lrange [split ${version} .] 0 1] .]
    910categories      devel
     
    104105    }
    105106
    106     set cmd "cd ${build.dir} && make${jobsargs} prefix='${prefix}' embedded_runpath_prefix='${prefix}' CC='${configure.cc}' CXX='${configure.cxx}' OPTIMIZE='yes' BZIP2_HOME='${prefix}' DB_HOME='${prefix}' EXPAT_HOME='${prefix}' OPENSSL_HOME='${prefix}' READLINE_HOME='${prefix}' USE_READLINE=yes MCPP_HOME='${prefix}' LDPLATFORMFLAGS= all && cd doc && make${jobsargs}"
     107    set cmd "cd ${build.dir} && make${jobsargs} prefix='${prefix}' embedded_runpath_prefix='${prefix}' CC='${configure.cc}' CXX='${configure.cxx}' OPTIMIZE='yes' BZIP2_HOME='${prefix}' DB_HOME='${prefix}' EXPAT_HOME='${prefix}' OPENSSL_HOME='${prefix}' READLINE_HOME='${prefix}' USE_READLINE=yes MCPP_HOME='${prefix}' all && cd doc && make${jobsargs}"
    107108    ui_debug ${cmd}
    108109    system ${cmd}
Note: See TracChangeset for help on using the changeset viewer.