From 9550f9626b4f804badd97196465ce8c2bfd621a1 Mon Sep 17 00:00:00 2001 From: Alam Ed Arias Date: Fri, 20 May 2016 17:28:34 -0400 Subject: [PATCH] r_opengl.dll: UPX and static link libgcc --- src/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index b6930ffd..463afccc 100644 --- a/src/Makefile +++ b/src/Makefile @@ -623,7 +623,10 @@ opengl_dll: $(BIN)/r_opengl.dll $(BIN)/r_opengl.dll: $(OBJDIR)/ogl_win.o $(OBJDIR)/r_opengl.o -$(MKDIR) $(BIN) @echo Linking R_OpenGL.dll... - $(CC) --shared $^ -o $@ -g -Wl,--add-stdcall-alias -lgdi32 + $(CC) --shared $^ -o $@ -g -Wl,--add-stdcall-alias -lgdi32 -static-libgcc +ifndef NOUPX + -$(UPX) $(UPX_OPTS) $@ +endif minigl_dll: $(BIN)/r_minigl.dll $(BIN)/r_minigl.dll: $(OBJDIR)/r_minigl.o