made stuff PIC
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user