On 7/5/2010 12:07 AM, Sisyphus wrote: > > ----- Original Message ----- From: "P Kishor" <[email protected]> > >> Fixing that Makefile will really make >> things a lot easier. > > Is that the fix where you want to change > > $hash{'LDDLFLAGS'} = " -shared -L$plplot_lib_path -L/usr/local/lib "; > to > $hash{'LDDLFLAGS'} = " -bundle -undefined dynamic_lookup > -L/usr/local/lib "; > > Might that change break things for someone else ? If so, then we need to > instead do: > > $hash{'LDDLFLAGS'} = <some condition> ? > " -bundle -undefined dynamic_lookup -L/usr/local/lib " : > " -shared -L$plplot_lib_path -L/usr/local/lib "; > > and we need to know what "<some condition>" is. > Perhaps the condition is that $^O eq 'MacOS'. > Would that do the job correctly ? > Or do there exist MacOS installations where we want " -shared > -L$plplot_lib_path -L/usr/local/lib " instead of " -bundle -undefined > dynamic_lookup -L/usr/local/lib " ?
Since PLplot is based on cmake, maybe a better alternative would be to use the cmake compiler information rather than hardwiring special case code. That way if it works to build PLplot library, it should work to build the PDL bindings. This kind of hack is why we really could use a change to Module::Build someday... --Chris _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
