prelink_20090925: allow dynamic linking of prelink
authorEric Bénard <eric@eukrea.com>
Tue, 18 May 2010 22:19:17 +0000 (00:19 +0200)
committerEric Bénard <eric@eukrea.com>
Wed, 19 May 2010 12:04:43 +0000 (14:04 +0200)
Signed-off-by: Eric Bénard <eric@eukrea.com>
recipes/prelink/prelink_20090925.bb

index 0f0d670..021b74b 100644 (file)
@@ -4,6 +4,7 @@ DESCRIPTION = " The prelink package contains a utility which modifies ELF shared
 and executables, so that far fewer relocations need to be resolved at \
 runtime and thus programs come up faster."
 LICENSE = "GPL"
+PR = "r1"
 
 SRC_URI = "${DEBIAN_MIRROR}/main/p/prelink/prelink_0.0.${PV}.orig.tar.gz \
            file://prelink.conf \
@@ -20,6 +21,10 @@ EXTRA_OECONF = "--disable-64bit"
 
 inherit autotools 
 
+do_compile_prepend () {
+       sed -i -e 's:prelink_LDFLAGS = -all-static:#prelink_LDFLAGS = -all-static:g' src/Makefile
+}
+
 do_install_append () {
        install -d ${D}${sysconfdir}/cron.daily ${D}${sysconfdir}/default
        install -m 0644 ${WORKDIR}/prelink.conf ${D}${sysconfdir}/prelink.conf