]> git.sur5r.net Git - i3/i3/commitdiff
common.mk: Move -lm to i3_LIBS
authorQuentin Glidic <sardemff7+git@sardemff7.net>
Sun, 22 Jul 2012 21:47:34 +0000 (23:47 +0200)
committerQuentin Glidic <sardemff7+git@sardemff7.net>
Sun, 22 Jul 2012 21:53:51 +0000 (23:53 +0200)
common.mk
src/i3.mk

index 57034b026b2841053616e8b94bfe1aab7b0f45c7..dda4e35f988dd5d7745f712c81adca6a248ef110 100644 (file)
--- a/common.mk
+++ b/common.mk
@@ -77,7 +77,6 @@ CFLAGS += $(call cflags_for_lib, xcb-randr)
 CFLAGS += $(call cflags_for_lib, xcb)
 CFLAGS += $(call cflags_for_lib, x11)
 
-LIBS += -lm
 LIBS += -L $(TOPDIR) -li3
 LIBS += $(call ldflags_for_lib, xcb-event,xcb-event)
 LIBS += $(call ldflags_for_lib, xcb-keysyms,xcb-keysyms)
index 363df0b349cc52238604af35a38507c0275b792b..6d77d64c0e95103a7e8bed8b81263edf934169af 100644 (file)
--- a/src/i3.mk
+++ b/src/i3.mk
@@ -7,7 +7,7 @@ i3_SOURCES           := $(filter-out $(i3_SOURCES_GENERATED),$(wildcard src/*.c)
 i3_HEADERS_CMDPARSER := $(wildcard include/GENERATED_*.h)
 i3_HEADERS           := $(filter-out $(i3_HEADERS_CMDPARSER),$(wildcard include/*.h))
 i3_CFLAGS             = $(XCURSOR_CFLAGS) $(YAJL_CFLAGS) $(LIBEV_CFLAGS) $(PCRE_CFLAGS) $(LIBSN_CFLAGS)
-i3_LIBS               = $(XCURSOR_LIBS) $(YAJL_LIBS) $(LIBEV_LIBS) $(PCRE_LIBS) $(LIBSN_LIBS)
+i3_LIBS               = $(XCURSOR_LIBS) $(YAJL_LIBS) $(LIBEV_LIBS) $(PCRE_LIBS) $(LIBSN_LIBS) -lm
 
 i3_OBJECTS := $(i3_SOURCES_GENERATED:.c=.o) $(i3_SOURCES:.c=.o)