Skip to content

Commit

Permalink
Add -fPIC
Browse files Browse the repository at this point in the history
  • Loading branch information
IsabelParedes committed Jan 9, 2024
1 parent 9677a8a commit 77e139b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,11 @@ if (XEUS_NELSON_BUILD_STATIC)
else ()
xnelson_create_target(xeus-nelson-static STATIC xeus-nelson)
endif ()
if (XEUS_NELSON_EMSCRIPTEN_WASM_BUILD)
target_compile_options(xeus-ruby-static PRIVATE -fPIC)
endif ()
list(APPEND XEUS_NELSON_TARGETS xeus-nelson-static)

endif ()

# xnelson
Expand All @@ -273,6 +276,7 @@ if (XEUS_NELSON_EMSCRIPTEN_WASM_BUILD)
add_executable(xnelson_wasm src/main_emscripten_kernel.cpp)
target_link_libraries(xnelson_wasm PRIVATE xeus-lite)
target_compile_features(xnelson_wasm PRIVATE cxx_std_17)
target_compile_options(xnelson_wasm PRIVATE -fPIC)
xnelson_set_kernel_options(xnelson_wasm)
xeus_wasm_compile_options(xnelson_wasm)
xeus_wasm_link_options(xnelson_wasm "web,worker")
Expand Down

0 comments on commit 77e139b

Please sign in to comment.