forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ibam-0.5.2-build.patch
42 lines (31 loc) · 1.29 KB
/
ibam-0.5.2-build.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
--- Makefile
+++ Makefile
@@ -17,8 +17,8 @@
#
IBAM_VERSION=0.5.2
-CC=g++
-CFLAGS=-O3 -DIBAM_VERSION=\"$(IBAM_VERSION)\" -Wall
+CXX?=g++
+CXXFLAGS+=-DIBAM_VERSION=\"$(IBAM_VERSION)\" -Wall
PREFIX=/usr
@@ -30,23 +30,23 @@
all: ibam
ibam: ibam.cpp ibam.inl ibam.hpp
- $(CC) $(CFLAGS) ibam.cpp -o ibam
+ $(CXX) $(LDFLAGS) $(CXXFLAGS) ibam.cpp -o ibam
krell: ibam-krell.so
ibam-krell.so: ibam-krell.o
- $(CC) $(CFLAGS) -fPIC -shared -Wl -o ibam-krell.so ibam-krell.o
+ $(CXX) $(LDFLAGS) $(CXXFLAGS) -fPIC -shared -Wl -o ibam-krell.so ibam-krell.o
ibam-krell.o: ibam-krell.cpp ibam.hpp ibam.inl
- $(CC) $(CFLAGS) -fPIC `pkg-config gtk+-2.0 --cflags` `gdk-pixbuf-config --cflags` -c ibam-krell.cpp
+ $(CXX) $(CXXFLAGS) -fPIC `pkg-config gtk+-2.0 --cflags` `gdk-pixbuf-config --cflags` -c ibam-krell.cpp
krell1: ibam-krell1.so
ibam-krell1.so: ibam-krell1.o
- $(CC) $(CFLAGS) -shared -Wl -o ibam-krell1.so ibam-krell1.o
+ $(CXX) $(LDFLAGS) $(CXXFLAGS) -shared -Wl -o ibam-krell1.so ibam-krell1.o
ibam-krell1.o: ibam-krell1.cpp ibam.hpp ibam.inl
- $(CC) $(CFLAGS) -fPIC `gtk-config --cflags` `imlib-config --cflags-gdk` -c ibam-krell1.cpp
+ $(CXX) $(CXXFLAGS) -fPIC `gtk-config --cflags` `imlib-config --cflags-gdk` -c ibam-krell1.cpp
install: ibam
$(INSTALL) ./ibam $(PREFIX)/local/bin/