[script] add missing flags required
This commit is contained in:
parent
33b400de39
commit
78d4991a4e
|
@ -236,6 +236,11 @@ if(OPENFPGA_ENABLE_SANITIZE)
|
|||
link_libraries("-static-libasan") #Fixes 'ASan runtime does not come first in initial library list'
|
||||
endif()
|
||||
|
||||
# Extra flags
|
||||
if (OPENFPGA_WITH_SWIG)
|
||||
set(EXTRA_FLAGS "-fpic")
|
||||
endif()
|
||||
|
||||
# Set final flags
|
||||
#
|
||||
separate_arguments(
|
||||
|
|
|
@ -16,8 +16,9 @@ if (OPENFPGA_WITH_SWIG)
|
|||
NAMESPACE std
|
||||
LANGUAGE tcl
|
||||
I_FILE src/openfpga.i)
|
||||
target_include_directories(libopenfpga_swig PUBLIC ${LIB_INCLUDE_DIRS})
|
||||
target_link_libraries(libopenfpga_swig
|
||||
PRIVATE
|
||||
libopenfpga
|
||||
libarchopenfpga
|
||||
libopenfpgashell
|
||||
libopenfpgautil
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
%module openfpga
|
||||
|
||||
%{
|
||||
#include "openfpga_shell.h"
|
||||
#include "openfpga_shell.h"
|
||||
%}
|
||||
|
||||
%include "openfpga_shell.h"
|
||||
|
|
Loading…
Reference in New Issue