Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/Makefile.flags
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/Makefile.flags
r3232 r3621 57 57 CFLAGS += $(call cc-option,-fno-unwind-tables,) 58 58 CFLAGS += $(call cc-option,-fno-asynchronous-unwind-tables,) 59 # No automatic printf->puts,putchar conversions 60 # (try disabling this and comparing assembly, it's instructive) 61 CFLAGS += $(call cc-option,-fno-builtin-printf,) 59 62 60 63 # FIXME: These warnings are at least partially to be concerned about and should … … 72 75 CFLAGS += $(call cc-option,-Os,$(call cc-option,-O2,)) 73 76 endif 77 endif 78 ifeq ($(CONFIG_DEBUG_SANITIZE),y) 79 CFLAGS += $(call cc-option,-fsanitize=address,) 80 CFLAGS += $(call cc-option,-fsanitize=leak,) 81 CFLAGS += $(call cc-option,-fsanitize=undefined,) 74 82 endif 75 83 … … 127 135 endif 128 136 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 129 148 ifeq ($(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 149 LDLIBS += pam pam_misc 138 150 endif 139 151 … … 164 176 165 177 ifneq ($(CONFIG_EXTRA_LDFLAGS),) 166 EXTRA_LDFLAGS += $(strip $(subst ",,$(CONFIG_EXTRA_LDFLAGS)))178 LDFLAGS += $(strip $(subst ",,$(CONFIG_EXTRA_LDFLAGS))) 167 179 #")) 168 180 endif
Note:
See TracChangeset
for help on using the changeset viewer.