mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 11:40:22 +00:00
Windows CUDA: link libraries rather dynamically
there are still errors like: ``` ld.lld: error: undefined symbol: __std_terminate >>> referenced by libcpmt.lib(cout.obj):($stateUnwindMap$?_Init@ios_base@std@@IEAAXXZ) >>> referenced by libcpmt.lib(cout.obj):($stateUnwindMap$??_Gios_base@std@@UEAAPEAXI@Z) >>> referenced by libcpmt.lib(cout.obj):($stateUnwindMap$??1?$basic_ios@DU?$char_traits@D@std@@@std@@UEAA@XZ) >>> referenced 12 more times ld.lld: error: undefined symbol: __CxxFrameHandler4 >>> referenced by libcpmt.lib(cout.obj):($unwind$??0_Locinfo@std@@QEAA@PEBD@Z) >>> referenced by libcpmt.lib(cout.obj):($unwind$??1_Locinfo@std@@QEAA@XZ) >>> referenced by libcpmt.lib(cout.obj):($unwind$??0locale@std@@QEAA@XZ) >>> referenced 140 more times ``` with some code
This commit is contained in:
@@ -191,7 +191,7 @@ AC_ARG_ENABLE(all,
|
||||
)
|
||||
|
||||
if test $system = Windows; then
|
||||
CUDA_FLAGS="$CUDA_FLAGS -Xcompiler -FS -Xcompiler -GS- -Xcompiler -d2FH4-"
|
||||
CUDA_FLAGS="$CUDA_FLAGS -Xcompiler -FS -Xcompiler -GS- -Xcompiler -d2FH4- -Xcompiler -MD"
|
||||
else
|
||||
CFLAGS="$CFLAGS -fPIC"
|
||||
CXXFLAGS="$CXXFLAGS -fPIC"
|
||||
|
||||
Reference in New Issue
Block a user