-
Notifications
You must be signed in to change notification settings - Fork 239
Closed
Description
Version: 0.10.1
OS: debian/trixie/sid
Building libqjs.so works fine with
cmake -B build -DBUILD_SHARED_LIBS=ON
However, it fails with
cmake -B build -DBUILD_SHARED_LIBS=ON -DQJS_BUILD_LIBC=ON
with the following result:
LANG=C cmake --build build
[ 36%] Built target qjs
[ 42%] Linking C executable qjsc
/usr/bin/ld: CMakeFiles/qjsc.dir/qjsc.c.o: in function `output_object_code':
./build/./qjsc.c:170:(.text+0x3c2): undefined reference to `js_std_dump_error'
/usr/bin/ld: CMakeFiles/qjsc.dir/qjsc.c.o: in function `jsc_module_loader':
./build/./qjsc.c:242:(.text+0x42d): undefined reference to `js_load_file'
/usr/bin/ld: CMakeFiles/qjsc.dir/qjsc.c.o: in function `compile_file':
./build/./qjsc.c:280:(.text.startup+0x7e6): undefined reference to `js_load_file'
/usr/bin/ld: ./build/./qjsc.c:280:(.text.startup+0x8bf): undefined reference to `js_load_file'
/usr/bin/ld: ./build/./qjsc.c:280:(.text.startup+0x9ab): undefined reference to `js_load_file'
/usr/bin/ld: ./build/./qjsc.c:296:(.text.startup+0xf8d): undefined reference to `js_std_dump_error'
collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/qjsc.dir/build.make:102: qjsc] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:135: CMakeFiles/qjsc.dir/all] Error 2
If I disable completely the qjsc target, I get similar errors for qjs_exe target.
Metadata
Metadata
Assignees
Labels
No labels