Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/Makefile.flags


Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/Makefile.flags

    r3232 r3621  
    5757CFLAGS += $(call cc-option,-fno-unwind-tables,)
    5858CFLAGS += $(call cc-option,-fno-asynchronous-unwind-tables,)
     59# No automatic printf->puts,putchar conversions
     60# (try disabling this and comparing assembly, it's instructive)
     61CFLAGS += $(call cc-option,-fno-builtin-printf,)
    5962
    6063# FIXME: These warnings are at least partially to be concerned about and should
     
    7275CFLAGS += $(call cc-option,-Os,$(call cc-option,-O2,))
    7376endif
     77endif
     78ifeq ($(CONFIG_DEBUG_SANITIZE),y)
     79CFLAGS += $(call cc-option,-fsanitize=address,)
     80CFLAGS += $(call cc-option,-fsanitize=leak,)
     81CFLAGS += $(call cc-option,-fsanitize=undefined,)
    7482endif
    7583
     
    127135endif
    128136
     137# libpam may use libpthread, libdl and/or libaudit.
     138# On some platforms that requires an explicit -lpthread, -ldl, -laudit.
     139# However, on *other platforms* it fails when some of those flags
     140# given needlessly. On some systems, crypt needs pthread.
     141#
     142# I even had a system where a runtime test for pthread
     143# (similar to CRYPT_AVAILABLE test above) was not reliable.
     144#
     145# Do not propagate this mess by adding libraries to CONFIG_PAM/CRYPT_AVAILABLE blocks.
     146# Add libraries you need to CONFIG_EXTRA_LDLIBS instead.
     147
    129148ifeq ($(CONFIG_PAM),y)
    130 # libpam uses libpthread, so for static builds busybox must be linked to
    131 # libpthread. On some platforms that requires an explicit -lpthread, so
    132 # it should be in LDLIBS. For non-static builds, scripts/trylink will
    133 # take care of removing -lpthread if possible. (Not bothering to check
    134 # CONFIG_STATIC because even in a non-static build it could be that the
    135 # only libpam available is libpam.a, so -lpthread could still be
    136 # needed.)
    137 LDLIBS += pam pam_misc pthread
     149LDLIBS += pam pam_misc
    138150endif
    139151
     
    164176
    165177ifneq ($(CONFIG_EXTRA_LDFLAGS),)
    166 EXTRA_LDFLAGS += $(strip $(subst ",,$(CONFIG_EXTRA_LDFLAGS)))
     178LDFLAGS += $(strip $(subst ",,$(CONFIG_EXTRA_LDFLAGS)))
    167179#"))
    168180endif
Note: See TracChangeset for help on using the changeset viewer.