Add paths of libraries to wscript file

37 views
Skip to first unread message

mand...@gmail.com

unread,
Sep 16, 2018, 11:33:49 AM9/16/18
to ns-3-users
Hi team,

Anyone knows how to add the following library path to a wscript file?

-L/usr/lib/python2.7/config-x86_64-linux-gnu -L/usr/lib -lpython2.7 -lpthread -ldl  -lutil -lm  -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions

Thanks & Regards,
Mandula

Noel Farrugia

unread,
Sep 17, 2018, 2:36:29 AM9/17/18
to ns-3-users
In the wscript file after the obj.source declaration, add the following line:

    obj.env.append_value('LIB', ['library1', 'library2', 'library3'])

and replace the library1, library2 ... etc based on your library names.

Hope this helps.
Noel
Reply all
Reply to author
Forward
0 new messages