On Thu, Jan 16, 2014 at 01:02:19PM +0100, Felix Salfelder wrote: > project/main/Makefile.am > bin_PROGRAMS = program > program_LDADD = ../lib/library.la > program_LDFLAGS = -rpath ${pkglibdir} # maybe -Wl,--enable-new-dtags
ftr, i found a convenient way to inject builddir specific environment into executables. this solves my libtool issues and leaves no traces after "make install". project/main/Makefile.am noinst_SCRIPTS = program bin_PROGRAMS = program.real program_real_LDADD = ../lib/library.la program_real_LDFLAGS = -rpath ${pkglibdir} -Wl,--enable-new-dtags transform=s&\.real$$&&;$(program_transform_name) project/main/program.in #!/bin/sh export LD_LIBRARY_PATH=@abs_top_builddir@/plugins/.libs @abs_builddir@/program.real %* project/configure.ac AC_CONFIG_FILES([main/program], [chmod +x main/program]) cheers felix