Mahyar Samani has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/31862 )

Change subject: scons: Add support for shared dramsim lib
......................................................................

scons: Add support for shared dramsim lib

Change-Id: I72e42816d23efc6655ea6ae4f378944cc105ea11
---
M ext/dramsim3/SConscript
1 file changed, 5 insertions(+), 3 deletions(-)



diff --git a/ext/dramsim3/SConscript b/ext/dramsim3/SConscript
index bc2333d..a568f11 100644
--- a/ext/dramsim3/SConscript
+++ b/ext/dramsim3/SConscript
@@ -53,7 +53,7 @@
 main['HAVE_DRAMSIM3'] = True


-dramsim_path = os.path.join(Dir('#').abspath, 'ext/dramsim3/DRAMSim3')
+dramsim_path = os.path.join(Dir('#').abspath, 'ext/dramsim3/DRAMSim3/')

 if thermal:
     superlu_path = os.path.join(dramsim_path, 'ext/SuperLU_MT_3.1/lib')
@@ -63,6 +63,8 @@
                 LIBPATH=[dramsim_path, superlu_path])
 else:
     main.Prepend(CPPPATH=Dir('.'))
+    # a littel hacky but can get a shared library working
     main.Append(LIBS=['dramsim3'],
-                LIBPATH=[dramsim_path])
-
+                LIBPATH=[dramsim_path],  # compile-time lookup
+                RPATH=[dramsim_path],  # runtime lookup
+                CPPPATH=[dramsim_path+'/src/'])

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/31862
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I72e42816d23efc6655ea6ae4f378944cc105ea11
Gerrit-Change-Number: 31862
Gerrit-PatchSet: 1
Gerrit-Owner: Mahyar Samani <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to