Skip to content

Commit edc3f3d

Browse files
committed
Merge pull request atomvm#703 from bettio/add-cmake-enable-exports-on-unix
generic_unix: exports symbols in order to make plugins work Enable ENABLE_EXPORTS executable target option which exports all executable symbols, so dlopen doesn't fail when loading a plugin. ENABLE_EXPORTS uses -export-dynamic/-rdynamic. These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents 7c07c96 + 3fed291 commit edc3f3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platforms/generic_unix/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
cmake_minimum_required (VERSION 3.13)
2222

2323
add_executable(AtomVM main.c)
24-
set_target_properties(AtomVM PROPERTIES RUNTIME_OUTPUT_DIRECTORY ../../)
24+
set_target_properties(AtomVM PROPERTIES RUNTIME_OUTPUT_DIRECTORY ../../ ENABLE_EXPORTS ON)
2525
target_compile_features(AtomVM PUBLIC c_std_11)
2626
if(CMAKE_COMPILER_IS_GNUCC)
2727
target_compile_options(AtomVM PUBLIC -Wall -pedantic -Wextra -ggdb)

0 commit comments

Comments
 (0)