Re: how to make daq drop rpath?
Michael Altizer <[email protected]>
| Newsgroups | gmane.comp.security.ids.snort.devel |
|---|---|
| Message-ID | <[email protected]> |
On 11/12/2016 02:13 PM, Marcin Dulak wrote: > Hi, > > I'm packaging daq-2.0 for Fedora/EPEL, but the linking process uses > rpath which is > discouraged on Fedora/Debian systems. > > The details of the problem are given at: > https://bugzilla.redhat.com/show_bug.cgi?id=1394502 > and an example build log at > https://kojipkgs.fedoraproject.org//work/tasks/4813/16424813/build.log > > Any suggestions how to solve it? > > Regards, > > Marcin I've never found a clean way to get rid of RPATH from within autotools. However, I just tried with the libtool butchering option from https://fedoraproject.org/wiki/Packaging:Guidelines#Removing_Rpath and it seemed to work fine. $ autoreconf -ivf $ ./configure --prefix=/var/tmp/daq-install $ sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool $ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool $ make install $ find /var/tmp/daq-install/lib -name "*.so" | xargs readelf -d | grep RPATH <nothing> Without the hack, you'd see this: $ find /var/tmp/daq-install/lib -name "*.so" | xargs readelf -d | grep RPATH 0x000000000000000f (RPATH) Library rpath: [/var/tmp/daq-install/lib] 0x000000000000000f (RPATH) Library rpath: [/var/tmp/daq-install/lib] 0x000000000000000f (RPATH) Library rpath: [/var/tmp/daq-install/lib] ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ Snort-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/snort-devel Archive: http://sourceforge.net/mailarchive/forum.php?forum_name=snort-devel Please visit http://blog.snort.org for the latest news about Snort!