diff --git a/Makefile b/Makefile index 262f366a..06c3223b 100644 --- a/Makefile +++ b/Makefile @@ -32,6 +32,8 @@ ifdef ARCH_MAC LDFLAGS += -lpthread -ldl \ -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo -framework CoreAudio -framework CoreMIDI \ dep/lib/libGLEW.a dep/lib/libglfw3.a dep/lib/libjansson.a dep/lib/libcurl.a dep/lib/libssl.a dep/lib/libcrypto.a dep/lib/libzip.a dep/lib/libz.a dep/lib/libspeexdsp.a dep/lib/libsamplerate.a dep/lib/librtmidi.a dep/lib/librtaudio.a + # For LuaJIT + LDFLAGS += -Wl,-pagezero_size,10000 -Wl,-image_base,100000000 TARGET := Rack endif diff --git a/src/main.cpp b/src/main.cpp index 7379f31a..0ed2ab58 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -77,6 +77,7 @@ int main(int argc, char* argv[]) { opterr = 0; while ((c = getopt(argc, argv, "dht:s:u:")) != -1) { switch (c) { + // Note: Mac "app translocation" passes a nonsense -psn flag, so we can't use -p for anything. case 'd': { settings::devMode = true; } break;