Skip to content

Commit

Permalink
More flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Jul 16, 2024
1 parent 6c5972e commit c09da95
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1202,13 +1202,11 @@ endif()

if(UNIX AND NOT APPLE)
target_link_options(${bun} PUBLIC
"-fuse-ld=lld"
"-fno-pic"
"-no-pie"
"-Wl,-z,lazy"
"-Wl,-z,norelro"
"-static-libstdc++"
"-static-libgcc"
-fuse-ld=lld
-fno-pic
-static-libstdc++
-static-libgcc
"-Wl,-no-pie,-relative-cap-relocs"
"-Wl,-icf=safe"
"-Wl,--as-needed"
"-Wl,--gc-sections"
Expand Down Expand Up @@ -1238,6 +1236,8 @@ if(UNIX AND NOT APPLE)
"-rdynamic"
"-Wl,--dynamic-list=${BUN_SRC}/symbols.dyn"
"-Wl,--version-script=${BUN_SRC}/linker.lds"
-Wl,-z,lazy
-Wl,-z,norelro
)

target_link_libraries(${bun} PRIVATE "c")
Expand Down
1 change: 1 addition & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ pub fn addBunObject(b: *Build, opts: *BunBuildOptions) *Compile {
// https://github.com/ziglang/zig/issues/17430
.pic = true,

.omit_frame_pointer = false,
.strip = false, // stripped at the end
});
obj.bundle_compiler_rt = false;
Expand Down

0 comments on commit c09da95

Please sign in to comment.