made stuff PIC

This commit is contained in:
IonutParau 2025-07-28 22:05:18 +02:00
parent 3f3e18dbe8
commit 48faf57d84

View File

@ -148,11 +148,13 @@ pub fn build(b: *std.Build) !void {
const engineStatic = b.addStaticLibrary(.{ const engineStatic = b.addStaticLibrary(.{
.name = "neonucleus", .name = "neonucleus",
.root_module = engineMod, .root_module = engineMod,
.pic = true,
}); });
const engineShared = b.addSharedLibrary(.{ const engineShared = b.addSharedLibrary(.{
.name = if(os == .windows) "neonucleusdll" else "neonucleus", .name = if(os == .windows) "neonucleusdll" else "neonucleus",
.root_module = engineMod, .root_module = engineMod,
.pic = true,
}); });
const engineStep = b.step("engine", "Builds the engine as a static library"); const engineStep = b.step("engine", "Builds the engine as a static library");