Commit Graph

254 Commits

Author SHA1 Message Date
Florian Weimer
b406f28746 build: Enable BIND_NOW
Partial RELRO means that the object is GNU_RELRO but not BIND_NOW.  This
reduces the effectiveness of RELRO.  bluez triggers this because it
enables PIE during the build, and rpmdiff takes this as an indicator
that the best possible hardening is desired.

https://bugzilla.redhat.com/show_bug.cgi?id=983161
2019-05-13 20:22:23 +03:00
Marcel Holtmann
d2925918b2 build: Switch to -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 2019-05-07 16:39:51 +02:00
Szymon Janc
6a9ca37f37 build: Enable -Wformat -Wformat-security in maintainer mode
__attribute__((format(printf))) doesn't seem to catch missing format
string in function call ie.

char *p = "foo";

printf(p);
vs
printf("%s", p);

Enabling -Wformat -Wformat-security warns in such case.
2015-01-02 17:59:46 +01:00
Marcel Holtmann
78cbdd40b2 build: Fix detection of coverage support 2014-12-14 00:33:41 +01:00
Luiz Augusto von Dentz
6a56b171b6 build: Add coverage support
Coverage is enabled with --enable-maintainer-mode, 2 new targets are
added 'coverage' and 'clean-coverage', the first generate the reports
using lcov and depend on the second to cleanup previous generated
reports and .gcda files.
2014-12-12 12:24:10 -02:00
Szymon Janc
e2f4e29955 build: Enable -Wswitch-enum in maintainer mode
This makes GCC verify if all enum values are listed in switch.
2014-12-08 14:00:29 +01:00
Szymon Janc
4bf368a098 build: Force GLib version check while building in maintainer mode
This will allow to catch up build errors introduced by using GLib API
introduced in newer GLib than minimal required even if building with
newer version.
2013-11-28 09:37:11 +02:00
Marcel Holtmann
cfb34d25b9 build: Check for clock_gettime with -lrt 2013-09-09 14:21:49 -07:00
Anderson Lizardo
6a0e5bc087 build: Fix --disable-optimization configure option
On commit cc9e4e7cae, this flag was
mistakenly replaced with the behavior of the old --enable-fortify
option.

This patch restores the "-O0" flag when --disable-optimization is used.

Unfortunately, this is not enough to disable build optimization. By
default, autoconf adds -O2 to CFLAGS if the compiler is GCC. AM_CFLAGS
(where -O0 is added with --disable-optimization) is passed as argument
to GCC before autoconf CFLAGS, so it is not possible to override the
default -O2. One solution is to use:

CFLAGS= ./configure --disable-optimization

i.e. remove -O2 from CFLAGS, and let autoconf add -O0.
2013-01-10 16:06:42 -08:00
Marcel Holtmann
cc9e4e7cae build: Update configure option handling 2012-12-10 21:32:51 +01:00
Marcel Holtmann
ff983074f8 build: Always build the Wiimote plugin 2012-12-10 21:32:51 +01:00
Marcel Holtmann
7d41e36e9f build: Remove left-over from telephony driver framework 2012-12-09 10:37:26 +01:00
Marcel Holtmann
292a37990c build: Remove dependency for check library 2012-12-09 10:33:32 +01:00
Marcel Holtmann
c45b8edf38 build: Enable bccmd utility when tools are enabled 2012-12-09 10:17:57 +01:00
Marcel Holtmann
bc974ed905 build: Use a separate Makefile.profiles 2012-12-09 01:26:22 +01:00
Marcel Holtmann
f6168cfe82 build: Remove old PCMCIA serial support 2012-12-09 00:59:22 +01:00
Marcel Holtmann
0613f64410 tools: Remove dfutool utility
This tool got replaced with dfu-util from http://dfu-util.gnumonks.org/
2012-12-09 00:50:54 +01:00
Marcel Holtmann
3b886d255b build: Remove compat helper for ppoll 2012-12-09 00:42:26 +01:00
Marcel Holtmann
fc771c9972 build: Check for existence of udev_hwdb_new function 2012-12-09 00:17:30 +01:00
Marcel Holtmann
c4858bbf24 build: Always enable GATT support 2012-11-09 20:30:54 +01:00
Marcel Holtmann
8d439d85b3 build: Remove option to build SBC support 2012-11-09 09:57:08 +01:00
Marcel Holtmann
15df7842e1 build: Remove option to build GStreamer plugin 2012-11-09 09:49:22 +01:00
João Paulo Rechi Vita
394b893a4d build: Fix selecting HoG suspend backend
The dummy backend was always being compiled and the --with-hog-suspend
option was not being accepted by configure. Now the backend can be
selected with --with-hog-suspend and the suspend implementation file is
generated during compile time.
2012-10-30 14:12:08 +02:00
Szymon Janc
fd1e9c5852 Add initial neard plugin implementation
Initial implementation. Only register and unregister support.
2012-10-03 22:44:51 +03:00
Mikel Astiz
4c8a8d655f build: Update glib dependency to 2.32
This version of the library adds several convenient features such as
g_queue_free_full.
2012-10-01 17:28:22 +03:00
Claudio Takahasi
16a8c88963 hog: Add suspend back-end selection
This patch series introduces back-end selection for HoG suspend drivers.
The default back-end is called "dummy", added for testing purpose only.
2012-09-28 12:55:25 +03:00
Gustavo Padovan
dd3f4ca901 plugins: remove unmaintained plugins 2012-07-10 11:19:10 -03:00
Gustavo Padovan
90118a6c71 serial: remove the whole serial code 2012-07-10 11:12:53 -03:00
Claudio Takahasi
fdc5ace164 hog: Register HID over GATT device driver 2012-07-09 09:57:42 -03:00
Gustavo Padovan
c31c93c351 remove compat daemons 2012-07-04 15:04:36 +03:00
Luiz Augusto von Dentz
4ff9b99292 audio: Remove ALSA support
ALSA support depend on unix support that is now removed.
2012-07-02 13:13:43 +03:00
Stefan Seyfried
02ea3647ac build: fix MISC_LDFLAGS typo to fix "--enable-pie" 2012-06-21 18:10:16 +03:00
Lucas De Marchi
afb0ab3a45 build: Do not set CFLAGS/LDFLAGS directly
Set a separate variable for adding warning flags, optimization, etc.
Build systems are not supposed to change CFLAGS and LDFLAGS, these are
user variables.

Doing so we guarantee CFLAGS and LDFLAGS from environment is appended
to the flags used during build. One useful use-case is to temporarily
disable -Werror when using --enable-maintainer-mode, without completely
loosing the warning flags and other parameters in CFLAGS (like -fPIC).

Without this patch, fiddling with CFLAGS/LDFLAGS after configure may
result in errors like below:

/usr/bin/ld: tools/rfcomm.o: relocation R_X86_64_32 against `.bss' can
not be used when making a shared object; recompile with -fPIC
tools/rfcomm.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[1]: *** [tools/rfcomm] Error 1
make: *** [all] Error 2

Reference: http://www.gnu.org/software/automake/manual/html_node/Flag-Variables-Ordering.html
2012-05-16 11:18:31 +03:00
Marcel Holtmann
1a79248e6b build: Require GLib 2.28 or later 2012-04-16 18:23:02 +02:00
Marcel Holtmann
c89b589a58 build: Require D-Bus 1.4 or later 2012-04-16 18:23:01 +02:00
Chen Ganir
e407e9ac6d GATT: Remove individual config switches
Remove individual GATT plugin configuration switches and add a
new master gatt switch called --enable-gatt to enable/disable all
GATT related plugins at once.
2012-03-26 12:09:51 +03:00
Marcel Holtmann
3bb5375bf5 tracer: Remove wrong attempt in building a HCI mointor in userspace 2012-02-20 16:03:42 +01:00
Santiago Carot-Nemesio
82ad2b53d2 glib-compat: Add g_list_free_full to deal with issues in old GLib versions 2012-02-03 10:45:17 -08:00
Anderson Lizardo
4f1294a5e7 Remove unused/broken "echo" RFCOMM plugin
It was disabled for quite some time (since 2009), and does not even
compile anymore if enabled:

plugins/echo.c: In function 'session_event':
plugins/echo.c:53: error: implicit declaration of function
'g_io_channel_read'
plugins/echo.c:57: error: implicit declaration of function
'g_io_channel_write'
2012-01-09 14:50:39 +02:00
Anderson Lizardo
d94628a136 Remove PulseAudio plugin leftover
The .c file and the configure check were not being used anywhere.
2012-01-09 14:50:27 +02:00
Scott James Remnant
f0ef8ce2ea build: increase check requirement to 0.9.6
ck_assert, used by unit/test-eir.c wasn't added to check until 0.9.6
2012-01-07 20:00:15 +02:00
Marcel Holtmann
bf5d45f2fb build: Move libcheck under TEST conditional 2011-12-27 20:09:56 -08:00
Bruna Moreira
d7925ed6c4 Add Phone Alert Server skeleton plugin 2011-09-22 20:05:06 +09:00
Anderson Lizardo
8f769e9565 Add GATT Time Server skeleton plugin 2011-09-22 20:05:04 +09:00
Santiago Carot-Nemesio
67c15df485 Initial support for Health Thermometer Profile (HTP) 2011-07-29 12:50:30 +03:00
Claudio Takahasi
37c3958aba Add Proximity Profile plugin skeleton 2011-07-26 11:13:01 +03:00
David Herrmann
1106efd440 Add support for wiimote pairing
The Nintendo Wii Remote requires binary bluetooth addresses as PINs.
This is not possible via dbus agent API. So this adds a plugin that
registers a pin-callback and forces the right pin for every
authentication request of wiimotes.
2011-07-14 17:25:05 +03:00
Marcel Holtmann
3f553a30ad Allow building with GLib 2.16 for now 2011-07-04 11:09:55 +02:00
Lucas De Marchi
c053eac034 build: Remove udevrules option
Use the new datafiles options instead.
2011-07-01 20:48:04 -07:00
Lucas De Marchi
9cec49b283 build: Rename configfiles option to datafiles
Instead of passing --[disable|enable]-configfiles, now we use
--[disable|enable]-datafiles as not all of the files are installed for
configuration but are rather data files.
2011-07-01 20:47:23 -07:00