aboutsummaryrefslogtreecommitdiffstats
path: root/com32/rosh
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-06-13 09:23:13 +0100
committerMatt Fleming <matt.fleming@intel.com>2012-06-20 16:34:42 +0100
commitfb543aa635ff117187c73ce0ae3dccf8ffe32161 (patch)
tree7be11edbcccb5e44ac621fe4f8bf54a1dbf3bb56 /com32/rosh
parent3e7446afe578dcad987076fdd340740d2c2f53d2 (diff)
downloadsyslinux-fb543aa635ff117187c73ce0ae3dccf8ffe32161.tar.gz
syslinux-fb543aa635ff117187c73ce0ae3dccf8ffe32161.tar.xz
syslinux-fb543aa635ff117187c73ce0ae3dccf8ffe32161.zip
com32: Per-object file LDFLAGS
Some object files need to link against the ELF libraries. Allow them to be specified with the following syntax in the Makefiles, LDFLAGS_$(object_file) = $(LIBS) By adding libraries in this way DT_NEEDED entries are created in the ELF modules and the required library dependencies are automatically loaded before running the module. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'com32/rosh')
-rw-r--r--com32/rosh/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/com32/rosh/Makefile b/com32/rosh/Makefile
index 766f68d5..f3283952 100644
--- a/com32/rosh/Makefile
+++ b/com32/rosh/Makefile
@@ -34,6 +34,8 @@ endif
CFLAGS += -DDATE='"$(DATE)"'
LNXCFLAGS += -DDATE='"$(DATE)"'
+LDFLAGS_rosh.o = $(com32)/libutil/libutil_com.c32 $(com32)/lib/libcom32.c32
+
rosh.o: rosh.h
rosh.lo: rosh.h