blob: 1892dab24b4c71950f82a070a18377e2cc4fdd9d (
plain) (
blame)
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
|
diff -upr unrar.orig/makefile unrar/makefile
--- unrar.orig/makefile 2017-06-30 21:34:46.228703991 +0200
+++ unrar/makefile 2017-06-30 21:35:07.535424717 +0200
@@ -3,12 +3,12 @@
# Linux using GCC
CXX=c++
-CXXFLAGS=-O2 -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else
+CXXFLAGS?=-O2 -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else
LIBFLAGS=-fPIC
DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP
STRIP=strip
AR=ar
-LDFLAGS=-pthread
+LDFLAGS+=-pthread
DESTDIR=/usr
# Linux using LCC
@@ -140,7 +140,7 @@ uninstall: uninstall-unrar
clean:
@rm -f *.o *.bak *~
-unrar: clean $(OBJECTS) $(UNRAR_OBJ)
+unrar: $(OBJECTS) $(UNRAR_OBJ)
@rm -f unrar
$(LINK) -o unrar $(LDFLAGS) $(OBJECTS) $(UNRAR_OBJ) $(LIBS)
$(STRIP) unrar
|