From 9f4a7bf4fc3c2ed3d1a6bd16055e5867c12c0eff Mon Sep 17 00:00:00 2001 From: Levi Burner Date: Mon, 4 Apr 2022 12:46:20 -0400 Subject: [PATCH] Workaround so simulate compiled with GCC does not lose OpenGL symbols --- simulate/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simulate/Makefile b/simulate/Makefile index 49e7fe68..82c89a68 100644 --- a/simulate/Makefile +++ b/simulate/Makefile @@ -9,4 +9,4 @@ all: $(CXX) -c -O2 -fPIC -I../include simulate.cc $(CXX) -shared -o libmjsimulate.so simulate.o uitools.o mv libmjsimulate.so ../lib/libmjsimulate.so - $(CXX) $(COMMON) main.cc -lmjsimulate -lmujoco -lGL -lglfw -o ../bin/simulate + $(CXX) $(COMMON) -Wl,-no-as-needed main.cc -lmjsimulate -lmujoco -lGL -lglfw -o ../bin/simulate