Ticket #1494: sge-rpath.patch

File sge-rpath.patch, 1.2 KB (added by opoplawski, 6 years ago)

sge-rpath.patch

  • sge-8.1.6/source/aimk

    diff -up sge-8.1.6/source/aimk.rpath sge-8.1.6/source/aimk
    old new case LINUX*: 
    15521552   set XLIBS    = "-lXm -lXt -lXext -lX11 -lSM -lICE"
    15531553   set JAVA_ARCH = "linux"
    15541554
    1555    # due to -rpath relative_path the LD_LIBRARY_PATH not needed anymore
    1556    # Fixme:  Should we use rpath, or remove it (per Fedora/Debian patch)?
    1557    # Since it hinders relocation of the shared distribution, and is
    1558    # irrelevant on the unshared one, I think it should go and be replaced
    1559    # by an /etc/ld.so.conf rule for the few libraries involved.
    1560    # Actually, this should probably just be conditionalized; see
    1561    # also the enforce_shlib stuff in distinst and the templates.
    1562    set RUNPATH       = -Wl,-rpath,'\$$ORIGIN'/../../lib/$buildarch
    1563    set LFLAGS        = "$LFLAGS $RUNPATH"
    1564    set SHARED_LFLAGS = "$SHARED_LFLAGS $RUNPATH"
     1555   set LFLAGS        = "$LFLAGS"
     1556   set SHARED_LFLAGS = "$SHARED_LFLAGS"
    15651557
    15661558   if ( $COMPILE_ARCH == "ULINUX86_24" || $COMPILE_ARCH == "ULINUXAMD64_24" ) then
    15671559      echo "Ignore jemalloc for unsupported architectures!"