[script] add missing flags required

This commit is contained in:
tangxifan 2022-12-01 14:49:05 -08:00
parent 33b400de39
commit 78d4991a4e
3 changed files with 8 additions and 2 deletions

View File

@ -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(

View File

@ -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

View File

@ -2,7 +2,7 @@
%module openfpga
%{
#include "openfpga_shell.h"
#include "openfpga_shell.h"
%}
%include "openfpga_shell.h"