@@ -27,6 +27,7 @@ pkginclude_HEADERS =
AM_CFLAGS = $(MISC_CFLAGS) $(WARNING_CFLAGS) $(UDEV_CFLAGS) $(LIBEBOOK_CFLAGS) \
$(LIBEDATASERVER_CFLAGS) $(ell_cflags)
AM_LDFLAGS = $(MISC_LDFLAGS)
+AM_CPPFLAGS += -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64
confdir = $(sysconfdir)/bluetooth
statedir = $(localstatedir)/lib/bluetooth
@@ -91,7 +91,6 @@ obexd_src_obexd_LDFLAGS = $(AM_LDFLAGS) -Wl,--export-dynamic
obexd_src_obexd_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS) $(DBUS_CFLAGS) \
$(ICAL_CFLAGS) -DOBEX_PLUGIN_BUILTIN \
-DPLUGINDIR=\""$(obex_plugindir)"\" \
- -D_FILE_OFFSET_BITS=64 \
-I$(builddir)/lib -I$(builddir)/obexd/src
obexd_src_obexd_CFLAGS = $(AM_CFLAGS) -fPIC
these are required to make glibc set off_t and time_t to 64-bit wide types on 32-bit platforms, for large-file-support and 2k38 proofing. Signed-off-by: psykose <alice@ayaya.dev> --- Makefile.am | 1 + Makefile.obexd | 1 - 2 files changed, 1 insertion(+), 1 deletion(-)