Commit 90f30f31 authored by Dustin L. Howett's avatar Dustin L. Howett

Fix symbol export (and the build) on Linux

parent 74855290
......@@ -5,5 +5,9 @@ include theos/makefiles/common.mk
TOOL_NAME = oligos
oligos_FILES = main.cc commands.cc server.cc event.cc
oligos_SUBPROJECTS = dady
ifeq ($(THEOS_TARGET_NAME),linux)
oligos_LIBRARIES += dl
oligos_LDFLAGS = -Wl,--export-dynamic
endif
include $(THEOS_MAKE_PATH)/tool.mk
......@@ -273,7 +273,7 @@ void event_loop() {
int main(int argc, char **argv, char **envp) {
progname = strdup(argv[0]);
app_handle = dlopen(NULL, RTLD_NOW|RTLD_LOCAL|RTLD_FIRST);
app_handle = dlopen(NULL, RTLD_NOW);
if(argc > 1 && strcmp(argv[1], "-copyover") == 0) {
init_copyover(argc, argv);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment