Skip to content

Commit

Permalink
[Samples] Use rpath when linking examples
Browse files Browse the repository at this point in the history
This eliminates the need to set LD_LIBRARY_PATH when using libraries that are
not on the standard search path.
  • Loading branch information
speth authored and bryanwweber committed Feb 12, 2020
1 parent 803cd31 commit 01a4e90
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions samples/cxx/SConstruct.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ env.Append(CCFLAGS=@tmpl_compiler_flags@,
CPPPATH=@tmpl_cantera_incdirs@,
LIBS=@tmpl_cantera_libs@,
LIBPATH=@tmpl_cantera_libdirs@,
RPATH=@tmpl_cantera_libdirs@,
LINKFLAGS=@tmpl_cantera_linkflags@,
FRAMEWORKS=@tmpl_cantera_frameworks@)

Expand Down
1 change: 1 addition & 0 deletions samples/f77/SConstruct.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ env.Append(FFLAGS='-g',
CPPPATH=@tmpl_cantera_incdirs@,
LIBS=@tmpl_cantera_libs@,
LIBPATH=@tmpl_cantera_libdirs@,
RPATH=@tmpl_cantera_libdirs@,
LINKFLAGS=@tmpl_cantera_linkflags@,
FRAMEWORKS=@tmpl_cantera_frameworks@)

Expand Down
1 change: 1 addition & 0 deletions samples/f90/SConstruct.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ env.Append(FFLAGS='-g',
F90PATH=@tmpl_cantera_incdirs@,
LIBS=@tmpl_cantera_libs@,
LIBPATH=@tmpl_cantera_libdirs@,
RPATH=@tmpl_cantera_libdirs@,
LINKFLAGS=@tmpl_cantera_linkflags@,
FRAMEWORKS=@tmpl_cantera_frameworks@)

Expand Down

0 comments on commit 01a4e90

Please sign in to comment.