X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Frelocatable-prog;h=72bc2537782d2c34b60cc5c735017a38fac253b3;hb=5191b3546cfb6c163228c23f214e325ddf60d46f;hp=4ea58d5b55aa0a688d236b7fc76051da753e62c2;hpb=723e191a290b675e77dfc6bb82d444dc2acb807c;p=gnulib.git diff --git a/modules/relocatable-prog b/modules/relocatable-prog index 4ea58d5b5..72bc25377 100644 --- a/modules/relocatable-prog +++ b/modules/relocatable-prog @@ -11,6 +11,7 @@ lib/relocatable.c lib/progreloc.c m4/relocatable.m4 m4/relocatable-lib.m4 +m4/lib-ld.m4 Depends-on: relocatable-prog-wrapper @@ -20,16 +21,36 @@ xalloc xreadlink stdbool unistd +memcmp +strdup configure.ac: gl_RELOCATABLE([$gl_source_base]) +if test $RELOCATABLE = yes; then + AC_LIBOBJ([progreloc]) + AC_LIBOBJ([relocatable]) +fi Makefile.am: DEFS += -DEXEEXT=\"@EXEEXT@\" +if RELOCATABLE_VIA_WRAPPER +uninstall-hook: uninstall-relocwrapper +uninstall-relocwrapper: + if test $(RELOCATABLE) = yes; then \ + case '$(EXEEXT)' in \ + .bin*) ;; \ + *) cd $(top_builddir) && \ + $(MAKE) $(AM_MAKEFLAGS) EXEEXT=.bin$(EXEEXT) \ + AM_MAKEFLAGS='$(AM_MAKEFLAGS) EXEEXT=.bin$(EXEEXT)' \ + uninstall ;; \ + esac; \ + fi +.PHONY: uninstall-relocwrapper +endif Include: -#include "relocatable.h" -#include "progname.h" +"relocatable.h" +"progname.h" License: GPL