File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 7
7
DPKG_EXPORT_BUILDFLAGS = 1
8
8
include /usr/share/dpkg/default.mk
9
9
10
+ ifneq (${SWSS_COMMON_INC},)
11
+ SWSS_COMMON_CONFIG = "--with-swss-common-inc=${SWSS_COMMON_INC}"
12
+ endif
13
+
14
+ ifneq (${SWSS_COMMON_LIB},)
15
+ SWSS_COMMON_CONFIG += "--with-swss-common-lib=${SWSS_COMMON_LIB}"
16
+ LD_LIBRARY_PATH_CONFIG = LD_LIBRARY_PATH=${SWSS_COMMON_LIB}
17
+ endif
18
+
10
19
# see FEATURE AREAS in dpkg-buildflags(1)
11
20
# export DEB_BUILD_MAINT_OPTIONS = hardening=+all
12
21
@@ -50,7 +59,7 @@ binary-syncd-vs:
50
59
51
60
override_dh_auto_configure :
52
61
./autogen.sh
53
- dh_auto_configure -- $(shell cat /tmp/syncd-build)
62
+ dh_auto_configure -- $(shell cat /tmp/syncd-build) ${SWSS_COMMON_CONFIG}
54
63
55
64
override_dh_install :
56
65
dh_install
@@ -62,7 +71,7 @@ override_dh_installinit:
62
71
dh_installinit --init-script=syncd
63
72
64
73
override_dh_shlibdeps :
65
- dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
74
+ $( LD_LIBRARY_PATH_CONFIG ) dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
66
75
67
76
override_dh_strip :
68
77
dh_strip -psyncd-rpc --dbg-package=syncd-rpc-dbg
You can’t perform that action at this time.
0 commit comments