Add -L flag to find library specified by -l flag
@@ -36,17 +36,17 @@ test:
- export CONDA_BUILD_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk # [osx]
- cd source/examples
# example_UsingIterators
- - ${CXX} example_UsingIterators.cc -o example_UsingIterators -I${CONDA_PREFIX}/include -lhepmc
+ - ${CXX} example_UsingIterators.cc -o example_UsingIterators -I${CONDA_PREFIX}/include -L${CONDA_PREFIX}/lib -lhepmc
# Fix up the runpath
- ${INSTALL_NAME_TOOL} -change @rpath/libHepMC.4.dylib $CONDA_PREFIX/lib/libHepMC.4.dylib example_UsingIterators # [osx]
- ./example_UsingIterators
# example_EventSelection
- - ${CXX} example_EventSelection.cc -o example_EventSelection -I${CONDA_PREFIX}/include -lhepmc
+ - ${CXX} example_EventSelection.cc -o example_EventSelection -I${CONDA_PREFIX}/include -L${CONDA_PREFIX}/lib -lhepmc
# Fix up the runpath
- ${INSTALL_NAME_TOOL} -change @rpath/libHepMC.4.dylib $CONDA_PREFIX/lib/libHepMC.4.dylib example_EventSelection # [osx]
- ./example_EventSelection
# example_BuildEventFromScratch
- - ${CXX} example_BuildEventFromScratch.cc -o example_BuildEventFromScratch -I${CONDA_PREFIX}/include -lhepmc
+ - ${CXX} example_BuildEventFromScratch.cc -o example_BuildEventFromScratch -I${CONDA_PREFIX}/include -L${CONDA_PREFIX}/lib -lhepmc
# Fix up the runpath
- ${INSTALL_NAME_TOOL} -change @rpath/libHepMC.4.dylib $CONDA_PREFIX/lib/libHepMC.4.dylib example_BuildEventFromScratch # [osx]
- ./example_BuildEventFromScratch
