automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

environment (solved) was: libtool wrapper and plugins


From: Felix Salfelder
Subject: environment (solved) was: libtool wrapper and plugins
Date: Sat, 18 Jan 2014 11:17:23 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

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 address@hidden@/plugins/.libs
@abs_builddir@/program.real %*

project/configure.ac
AC_CONFIG_FILES([main/program], [chmod +x main/program])

cheers
felix



reply via email to

[Prev in Thread] Current Thread [Next in Thread]