openbsd-ports/security/aircrack-ng/patches/patch-src_Makefile
2011-06-01 08:16:15 +00:00

68 lines
2.5 KiB
Plaintext

--- src/Makefile.orig Sat Feb 13 23:32:28 2010
+++ src/Makefile Tue May 31 19:45:28 2011
@@ -99,16 +99,16 @@ LIBOSD = $(OSD)/lib$(OSD).a
LIBSSL = -lssl -lcrypto $(LDFLAGS)
LIBSQL =
ifeq ($(SQLITE), true)
- LIBSQL = -L/usr/local/lib -lsqlite3
+ LIBSQL = -L${LOCALBASE}/lib -lsqlite3
else
ifeq ($(sqlite), true)
- LIBSQL = -L/usr/local/lib -lsqlite3
+ LIBSQL = -L${LOCALBASE}/lib -lsqlite3
else
ifeq ($(SQLITE), TRUE)
- LIBSQL = -L/usr/local/lib -lsqlite3
+ LIBSQL = -L${LOCALBASE}/lib -lsqlite3
else
ifeq ($(sqlite), TRUE)
- LIBSQL = -L/usr/local/lib -lsqlite3
+ LIBSQL = -L${LOCALBASE}/lib -lsqlite3
endif
endif
endif
@@ -126,21 +126,21 @@ $(LIBOSD):
aircrack-ng-opt: $(SRC_AC)
$(iCC) $(iCFLAGS) $(iOPTFLAGS) $(REVFLAGS) $(SRC_AC) $(ASM_AC) $(LIBSSL) \
- uniqueiv.o -o aircrack-ng-opt -lpthread $(LIBSQL)
+ uniqueiv.o -o aircrack-ng-opt -pthread $(LIBSQL)
aircrack-ng-opt-prof_gen: $(SRC_AC)
mkdir -p prof
$(iCC) $(iCFLAGS) $(iOPTFLAGS) $(REVFLAGS) -prof_genx -DDO_PGO_DUMP \
-prof_dir$(PROF_DIR) $(SRC_AC) $(ASM_AC) $(LIBSSL) uniqueiv.o -o \
- aircrack-ng-opt-prof_gen -lpthread $(LIBSQL)
+ aircrack-ng-opt-prof_gen -pthread $(LIBSQL)
aircrack-ng-opt-prof_use: $(SRC_AC)
$(iCC) $(iCFLAGS) $(iOPTFLAGS) $(REVFLAGS) -prof_use \
-prof_dir$(PROF_DIR) $(SRC_AC) $(ASM_AC) $(LIBSSL) uniqueiv.o -o \
- aircrack-ng-opt-prof -lpthread $(LIBSQL)
+ aircrack-ng-opt-prof -pthread $(LIBSQL)
aircrack-ng$(EXE): $(OBJS_AC)
- $(CC) $(CFLAGS) $(OBJS_AC) $(ASM_AC) -o $(@) -lpthread $(LIBSSL) $(LIBSQL)
+ $(CC) $(CFLAGS) $(OBJS_AC) $(ASM_AC) -o $(@) -pthread $(LIBSSL) $(LIBSQL)
airdecap-ng$(EXE): $(OBJS_AD)
$(CC) $(CFLAGS) $(OBJS_AD) -o $(@) $(LIBSSL)
@@ -152,7 +152,7 @@ aireplay-ng$(EXE): $(OBJS_AR) $(LIBOSD)
$(CC) $(CFLAGS) $(OBJS_AR) -o $(@) $(LIBS) $(LIBSSL)
airodump-ng$(EXE): $(OBJS_ADU) $(LIBOSD)
- $(CC) $(CFLAGS) $(OBJS_ADU) -o $(@) $(LIBS) $(LIBSSL) -lpthread
+ $(CC) $(CFLAGS) $(OBJS_ADU) -o $(@) $(LIBS) $(LIBSSL) -pthread
airserv-ng$(EXE): $(OBJS_AS) $(LIBOSD)
$(CC) $(CFLAGS) $(OBJS_AS) -o $(@) $(LIBS) $(LIBPCAP)
@@ -182,7 +182,7 @@ airolib-ng$(EXE): $(OBJS_AL)
$(CC) $(CFLAGS) $(OBJS_AL) -o $(@) $(LIBSSL) -DHAVE_REGEXP $(LIBSQL)
airbase-ng$(EXE): $(OBJS_AB) $(LIBOSD)
- $(CC) $(CFLAGS) $(OBJS_AB) -o $(@) $(LIBS) $(LIBSSL) -lpthread
+ $(CC) $(CFLAGS) $(OBJS_AB) -o $(@) $(LIBS) $(LIBSSL) -pthread
airdecloak-ng$(EXE): $(OBJS_AU)
$(CC) $(CFLAGS) $(OBJS_AU) -o $(@)