Skip to content

Commit

Permalink
Added TRICK_LDFLAGS to the rule for linking shared library for jit in…
Browse files Browse the repository at this point in the history
…put. (#1745)

* Added TRICK_LDFLAGS to the rule for linking shared library so user can use TRICK_LDFLAGS for linking shared library if necessary.

* Removed the new line added by accident.
  • Loading branch information
hchen99 authored Jul 23, 2024
1 parent a9aa708 commit f892b41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trick_source/sim_services/JITInputFile/JITInputFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ int Trick::JITInputFile::compile(std::string file_name) {
// rule to link shared library
outfile << library_fullpath_name << ": " << object_fullpath_name << std::endl ;
#ifdef __APPLE__
outfile << "\t" << get_trick_env((char *)"TRICK_CXX") << " -shared -undefined dynamic_lookup -o $@ $< " << std::endl << std::endl ;
outfile << "\t" << get_trick_env((char *)"TRICK_CXX") << " " << get_trick_env((char *)"TRICK_LDFLAGS") << " -shared -undefined dynamic_lookup -o $@ $< " << std::endl << std::endl ;
#else
outfile << "\t" << get_trick_env((char *)"TRICK_CXX") << " -shared -o $@ $< " << std::endl << std::endl ;
outfile << "\t" << get_trick_env((char *)"TRICK_CXX") << " " << get_trick_env((char *)"TRICK_LDFLAGS") << " -shared -o $@ $< " << std::endl << std::endl ;
#endif
// rule to compile cpp file
outfile << object_fullpath_name << ": " << file_name << std::endl ;
Expand Down

0 comments on commit f892b41

Please sign in to comment.