distribution/packages/sysutils/hid_mapper/patches/hid_mapper-01_crosscompile.patch

22 lines
391 B
Diff
Raw Normal View History

2022-02-05 14:23:32 +00:00
diff --git a/Makefile b/Makefile
index f98abbd..9d1d524 100755
--- a/Makefile
+++ b/Makefile
@@ -9,13 +9,13 @@ EXEC=hid_mapper
VERSION=1.0
all: $(OBJS)
- g++ $(LDFLAGS) $(OBJS) -o $(EXEC)
+ ${CXX} $(LDFLAGS) $(OBJS) -o $(EXEC)
%.o: %.cpp
- g++ -c $(CPPFLAGS) $<
+ ${CXX} -c $(CPPFLAGS) $<
%.o: %.c
- gcc -c $(CFLAGS) $<
+ ${CC} -c $(CFLAGS) $<
deb:
cp $(EXEC) package/usr/bin