diff --git a/src/pallene/c_compiler.lua b/src/pallene/c_compiler.lua index 6fad4c7d..ca204b66 100644 --- a/src/pallene/c_compiler.lua +++ b/src/pallene/c_compiler.lua @@ -18,7 +18,6 @@ local c_compiler = {} local CC = os.getenv("CC") or "cc" local CFLAGS = os.getenv("CFLAGS") or "-O2" -local PTLIBDIR = os.getenv("PTLIBDIR") or "/usr/local/lib" local function get_uname() local ok, err, uname = util.outputs_of_execute("uname -s") @@ -62,8 +61,6 @@ function c_compiler.compile_o_to_so(in_filename, out_filename) CFLAGS_SHARED, "-o", util.shell_quote(out_filename), util.shell_quote(in_filename), - "-lptracer", - "-Wl,-rpath="..PTLIBDIR, }) end diff --git a/src/pallene/pallenelib.lua b/src/pallene/pallenelib.lua index 6cb03050..47be4517 100644 --- a/src/pallene/pallenelib.lua +++ b/src/pallene/pallenelib.lua @@ -48,6 +48,7 @@ return [==[ /* Pallene Tracer for function call tracebacks. */ /* Look at `https://github.com/pallene-lang/pallene-tracer` for more info. */ +#define PT_IMPLEMENTATION #include #define PALLENE_UNREACHABLE __builtin_unreachable()