mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-25 02:35:22 +00:00
fix linking order
Libraries must come after objects when linking. Otherwise their references will be elided when earlier objects didn't need them. BUG=None TEST=`LDFLAGS=-Wl,--as-needed emerge-daisy vboot_reference` worked BRANCH=None Change-Id: Ic8237a767758d002cd848ed3293b17940884b609 Reviewed-on: https://gerrit.chromium.org/gerrit/37166 Reviewed-by: Kees Cook <keescook@chromium.org> Commit-Ready: Mike Frysinger <vapier@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
@@ -191,9 +191,10 @@ ${BUILD_ROOT}/mount-encrypted: mount-encrypted.c mount-encrypted.h \
|
|||||||
-I$(FWDIR)/include \
|
-I$(FWDIR)/include \
|
||||||
-I$(HOSTDIR)/include \
|
-I$(HOSTDIR)/include \
|
||||||
$(LDFLAGS) \
|
$(LDFLAGS) \
|
||||||
$< -o $@ $(shell $(PKG_CONFIG) --libs glib-2.0 openssl) \
|
$< -o $@ \
|
||||||
-lm \
|
${BUILD_ROOT}/mount-helpers.o $(LIBS) \
|
||||||
${BUILD_ROOT}/mount-helpers.o $(LIBS)
|
$(shell $(PKG_CONFIG) --libs glib-2.0 openssl) \
|
||||||
|
-lm
|
||||||
|
|
||||||
${BUILD_ROOT}/dev_sign_file: dev_sign_file.c $(LIBS)
|
${BUILD_ROOT}/dev_sign_file: dev_sign_file.c $(LIBS)
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LIBS) $(CRYPTO_LIBS)
|
$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LIBS) $(CRYPTO_LIBS)
|
||||||
|
|||||||
Reference in New Issue
Block a user