Author Topic: How do we use static flag in Makefile?  (Read 108 times)

0 Members and 1 Guest are viewing this topic.

Offline THLeaderH

How do we use static flag in Makefile?
« 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?

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 8576
  • Total likes: 256
  • Helpful: 226
  • Languages: De,EN,JP
Re: How do we use static flag in Makefile?
« Reply #1 on: March 01, 2017, 01:19:34 PM »
These and other flags can be set in config.default by adding the line "STATIC = 1"