[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: problem with swt4-gtk update



On Tue, Dec 29, 2020 at 12:18 AM Thorsten Glaser <t.glaser@tarent.de> wrote:
>
> On Tue, 29 Dec 2020, Sudip Mukherjee wrote:
>
> > +export DEB_CFLAGS_MAINT_APPEND=-fPIC -DNO_gdk_1texture_1new_1from_1file
>
> -D goes to CPPFLAGS, not CFLAGS.

oops. thanks Thorsten. So the modified patch is pasted below. But even
if we add it to CPPFLAGS it will eventually get added to CFLAGS as
d/rules is doing "CFLAGS+=$(CPPFLAGS)".


diff --git a/debian/rules b/debian/rules
index 803ce85a..5add19ce 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,7 @@
 include /usr/share/dpkg/pkg-info.mk

 export DEB_CFLAGS_MAINT_APPEND=-fPIC
+export DEB_CPPFLAGS_MAINT_APPEND=-DNO_gdk_1texture_1new_1from_1file
 DEB_BUILD_MAINT_OPTIONS=hardening=+all
 include /usr/share/dpkg/buildflags.mk
 CFLAGS+=$(CPPFLAGS)


-- 
Regards
Sudip


Reply to: