Hiding extra symbols
@@ -84,7 +84,7 @@ else ifneq ($(filter linux,$(TAGS)),)
endif
-CFLAGS = $(DOME_OPTS) -std=c99 -pedantic $(WARNING_FLAGS)
+CFLAGS = $(DOME_OPTS) -std=c99 -pedantic $(WARNING_FLAGS) -fvisibility=hidden
ifneq ($(filter macosx,$(TAGS)),)
CFLAGS += -mmacosx-version-min=10.12
endif
@@ -173,7 +173,7 @@ $(OBJS)/main.o: $(SOURCE)/*.h $(SOURCE)/*.c $(MODULES)/*.c $(MODULES)/*.inc $(IN
$(TARGET_NAME): $(OBJS)/main.o $(OBJS)/vendor.o $(WREN_LIB)
@echo "==== Linking DOME ($(TAGS)) ===="
- $(CC) $(FFLAGS) -o $(TARGET_NAME) $(OBJS)/*.o $(ICON_OBJECT_FILE) $(LDFLAGS)
+ $(CC) $(CFLAGS) $(FFLAGS) -o $(TARGET_NAME) $(OBJS)/*.o $(ICON_OBJECT_FILE) $(LDFLAGS)
./scripts/set-executable-path.sh $(TARGET_NAME)
@echo "DOME built as $(TARGET_NAME)"
