mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-27 05:05:32 +03:00
b6590b7f83
The LinkDemo program calls dlopen/dlsym/dlclose to try and load a dyanmic library from /usr/lib. It read a global variable and calls a global function (extern "C" of course :) ). There a few hacks left in the LinkLib dynamic library, however. In order to get the linker to stop complaining, we have to use -nostartfiles -ffreestanding otherwise it will link crt0.o to our shared object, which is definitely not right as the _init function for a main program (that calls main) is not suitable for our lib
35 lines
324 B
Plaintext
35 lines
324 B
Plaintext
*
|
|
!*.*
|
|
!*/
|
|
!Makefile
|
|
!LICENSE
|
|
!Base/**
|
|
|
|
*.o
|
|
*.ao
|
|
*.a
|
|
*.so
|
|
*.d
|
|
|
|
*.swp
|
|
*.config
|
|
*.creator
|
|
*.creator.user
|
|
*.creator.user.*
|
|
*.files
|
|
*.includes
|
|
*.cflags
|
|
*.cxxflags
|
|
*.autosave
|
|
Root
|
|
Toolchain/Tarballs
|
|
Toolchain/Build
|
|
Toolchain/Local
|
|
.vscode
|
|
.ccls-cache
|
|
.DS_Store
|
|
compile_commands.json
|
|
.clang_complete
|
|
*Endpoint.h
|
|
Ports/packages.db
|