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:
parent
09ccdc697b
commit
58c583f584
5 changed files with 22 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue