Fix build break in 64bit architectures 99/228399/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_base accepted/tizen_7.0_base_hotfix accepted/tizen_unified tizen tizen_6.0 tizen_6.0_hotfix tizen_6.5_base tizen_7.0_base_hotfix accepted/tizen/6.0/unified/20201030.105847 accepted/tizen/6.0/unified/hotfix/20201102.233849 accepted/tizen/6.0/unified/hotfix/20201103.050210 accepted/tizen/6.5/base/20211028.055946 accepted/tizen/7.0/base/20221116.025809 accepted/tizen/7.0/base/hotfix/20221116.055217 accepted/tizen/base/20210823.102858 accepted/tizen/base/20221115.103646 accepted/tizen/unified/20200403.034532 submit/tizen/20200323.004942 submit/tizen/20200402.034509 submit/tizen/20210823.081025 submit/tizen_6.0/20201029.205502 submit/tizen_6.0_hotfix/20201102.192902 submit/tizen_6.0_hotfix/20201103.115102 submit/tizen_6.5_base/20211028.134101 submit/tizen_base/20210823.081241 tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release
authorSemun Lee <semun.lee@samsung.com>
Mon, 23 Mar 2020 00:41:52 +0000 (09:41 +0900)
committerSemun Lee <semun.lee@samsung.com>
Mon, 23 Mar 2020 00:41:52 +0000 (09:41 +0900)
Change-Id: I34d50f8cb9bd5bc2f342551a4f5d5d5fa481c7b7
Signed-off-by: Semun Lee <semun.lee@samsung.com>
netem/Makefile
packaging/iproute2.spec
tc/Makefile

index ba4c5a7..0fe4c8f 100644 (file)
@@ -8,6 +8,8 @@ HOSTCC ?= $(CC)
 CCOPTS  = $(CBUILD_CFLAGS)
 LDLIBS += -lm
 
+MODDESTDIR ?= $(DESTDIR)$(LIBDIR)/tc
+
 all: $(DISTGEN) $(DISTDATA)
 
 $(DISTGEN):
@@ -23,9 +25,9 @@ stats: stats.c
        $(HOSTCC) $(CCOPTS) -I../include -o $@ $@.c -lm
 
 install: all
-       mkdir -p $(DESTDIR)$(LIBDIR)/tc
+       mkdir -p $(MODDESTDIR)
        for i in $(DISTDATA); \
-       do install -m 644 $$i $(DESTDIR)$(LIBDIR)/tc; \
+       do install -m 644 $$i $(MODDESTDIR); \
        done
 
 clean:
index dbc3b06..1818743 100644 (file)
@@ -60,8 +60,8 @@ install -d "$b"/{etc/,sbin/,usr/{bin,sbin,share/man/man{3,8}}}
 install -d "$b"/{%_includedir,%_libdir,/usr/share}
 export SBINDIR=%_sbindir
 export CONFDIR=/usr%{_sysconfdir}/iproute2
-%make_install \
-  MODDESTDIR="$b/%_libdir/tc"
+export MODDESTDIR="$b/%_libdir/tc"
+%make_install
 
 # We have m_xt
 rm -f "$b/%_libdir/tc/m_ipt.so"
index f2ff86f..665ddfb 100644 (file)
@@ -127,7 +127,7 @@ endif
 LEX := flex
 CFLAGS += -DYY_NO_INPUT
 
-MODDESTDIR := $(DESTDIR)$(LIBDIR)/tc
+MODDESTDIR ?= $(DESTDIR)$(LIBDIR)/tc
 
 %.so: %.c
        $(QUIET_CC)$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -shared -fpic $< -o $@