The International Simutrans Forum

Development => Technical Documentation => Topic started by: THLeaderH on March 01, 2017, 01:00:39 PM

Title: How do we use static flag in Makefile?
Post by: THLeaderH on March 01, 2017, 01:00:39 PM
I found $(STATIC) flag in Makefile.
Code: [Select]
ifneq ($(STATIC),)
            ifeq ($(shell expr $(STATIC) \>= 1), 1)
              CFLAGS  += -static
              LDFLAGS += -Wl,-Bstatic -lbz2 -Wl,-Bdynamic
# other libs like SDL2 MUST be dynamic!
            endif
          endif
How do we use this flag when compiling? Editing config.default somehow?
Title: Re: How do we use static flag in Makefile?
Post by: prissi on March 01, 2017, 01:19:34 PM
These and other flags can be set in config.default by adding the line "STATIC = 1"