in reply to adding RPATH to Sybase.so
I think you're out of luck with adding to LDDLFLAGS, but you could try setting
WriteMakefile( ... dynamic_lib => { OTHERLDFLAGS => '-Wl,-rpath,/usr/local/dept/lib' +}, ... );
in Makefile.PL — which should achieve the same effect. OTHERLDFLAGS is being inserted a little later on the linker command line, i.e. $(LD) $(LDDLFLAGS) $(LDFROM) $(OTHERLDFLAGS) -o $@ $(MYEXTLIB) ..., but that's not a problem, as it doesn't matter at which position the rpath option occurs.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: adding RPATH to Sybase.so
by jklowden (Novice) on Jan 13, 2010 at 17:11 UTC |