1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:27:45 +00:00

LibC: Add libc.so

We now compile everything with -static flag so libc.a would be use
This commit is contained in:
Itamar 2020-10-16 12:57:15 +03:00 committed by Andreas Kling
parent 09ccdc697b
commit 58c583f584
5 changed files with 22 additions and 5 deletions

View file

@ -70,5 +70,8 @@ serenity_libc(LibC c)
target_link_libraries(LibC crt0)
add_dependencies(LibC LibM)
add_library(LibCShared SHARED ${SOURCES})
install(TARGETS LibCShared DESTINATION usr/lib)
set(SOURCES ${SOURCES} "crt0_shared.cpp")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -nostdlib")
serenity_libc_shared(LibCShared c)
#add_library(LibCShared SHARED ${SOURCES})
#install(TARGETS LibCShared DESTINATION usr/lib)

View file

@ -22,9 +22,11 @@ int _start(int argc, char** argv, char** env)
__environ_is_malloced = false;
__libc_init();
_init();
// _init();
int status = main(argc, argv, environ);
return status;
}
}
void* __dso_handle = nullptr;