modules/battery: fix compiling on OS X

Summary:
Battery module relies on Apple's CoreFoundation (CF), but CF's CFLAGS
were not provided to this module.

Test Plan: Enlightenment now compiles on OS X.

Reviewers: zmike, raster

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2328
devs/stefan/wl-session-recovery
Jean Guyomarc'h 8 years ago committed by Mike Blumenkrantz
parent 128338952e
commit 0ea7858f77
  1. 3
      configure.ac
  2. 2
      src/modules/Makefile_battery.mk

@ -644,7 +644,8 @@ have_freebsd="no"
BATTERY_LDFLAGS=
case "$host_os" in
darwin*)
BATTERY_LDFLAGS="-framework Foundation -framework IOKit"
BATTERY_LDFLAGS="${cf_libs}"
BATTERY_CFLAGS="${BATTERY_CFLAGS} ${cf_cflags}"
;;
openbsd*)
have_openbsd="yes"

@ -35,7 +35,7 @@ endif
src_modules_battery_batgetdir = $(batterypkgdir)
src_modules_battery_batget_PROGRAMS = src/modules/battery/batget
src_modules_battery_batget_CPPFLAGS = $(MOD_CPPFLAGS)
src_modules_battery_batget_CPPFLAGS = $(MOD_CPPFLAGS) @BATTERY_CFLAGS@
src_modules_battery_batget_SOURCES = src/modules/battery/batget.c
src_modules_battery_batget_LDADD = @BATTERY_LIBS@
src_modules_battery_batget_LDFLAGS = @BATTERY_LDFLAGS@

Loading…
Cancel
Save