diff --git a/examples/make.py b/examples/make.py index b2623feab999a5556bb1605d39d473e3533c7cca..ff0c60e9d2377f5d63ce0667adcd8ceec7b0a6e1 100644 --- a/examples/make.py +++ b/examples/make.py @@ -5,13 +5,13 @@ for c_file in glob.glob(script_path + "/*/*.c", recursive=False): args = [ "gcc", # compiler "-std=c11", # C11 mode - "-L", # lib path flag - "./", # where to look for libs - "-lreowolf_rs", # add lib called "reowolf_rs" "-Wl,-R./", # pass -R flag to linker: produce relocatable object c_file, # input source file "-o", # output flag - c_file[:-2] # output filename + c_file[:-2], # output filename + "-L", # lib path flag + "./", # where to look for libs + "-lreowolf_rs" # add lib called "reowolf_rs" ]; subprocess.run(args) input("Blocking until newline...");