Skip to content

Commit 9bf4fd2

Browse files
authoredMay 5, 2021
Merge pull request gigablast#170 from onlyjob/master
cleanup
2 parents 9146f05 + 50d2cf9 commit 9bf4fd2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+2365
-43055
lines changed
 

‎Make.depend

+2,353-4,383
Large diffs are not rendered by default.

‎Makefile

+11-10
Original file line numberDiff line numberDiff line change
@@ -113,24 +113,25 @@ LIBS = ./libz.a ./libssl.a ./libcrypto.a ./libiconv.a ./libm.a
113113
# are we a 32-bit architecture? use different libraries then
114114
else ifeq ($(ARCH), i686)
115115
CPPFLAGS= -m32 -g -Wall -pipe -fno-stack-protector -Wno-write-strings -Wstrict-aliasing=0 -Wno-uninitialized -DPTHREADS -Wno-unused-but-set-variable $(STATIC)
116-
#LIBS= -L. ./libz.a ./libssl.a ./libcrypto.a ./libiconv.a ./libm.a ./libstdc++.a -lpthread
117-
LIBS= -lm -lpthread -lssl -lcrypto ./libiconv.a ./libz.a
116+
#LIBS= -L. ./libssl.a ./libcrypto.a ./libiconv.a ./libm.a ./libstdc++.a -lpthread
117+
LIBS= -lm -lpthread -lssl -lcrypto ./libiconv.a
118118

119119
else ifeq ($(ARCH), i386)
120120
CPPFLAGS= -m32 -g -Wall -pipe -fno-stack-protector -Wno-write-strings -Wstrict-aliasing=0 -Wno-uninitialized -DPTHREADS -Wno-unused-but-set-variable $(STATIC)
121-
#LIBS= -L. ./libz.a ./libssl.a ./libcrypto.a ./libiconv.a ./libm.a ./libstdc++.a -lpthread
122-
LIBS= -lm -lpthread -lssl -lcrypto ./libiconv.a ./libz.a
121+
#LIBS= -L. ./libssl.a ./libcrypto.a ./libiconv.a ./libm.a ./libstdc++.a -lpthread
122+
LIBS= -lm -lpthread -lssl -lcrypto ./libiconv.a
123123

124124
else
125125
#
126126
# Use -Wpadded flag to indicate padded structures.
127127
#
128-
CPPFLAGS = -g -Wall -pipe -fno-stack-protector -Wno-write-strings -Wstrict-aliasing=0 -Wno-uninitialized -DPTHREADS -Wno-unused-but-set-variable $(STATIC)
129-
#LIBS= -L. ./libz.a ./libssl.a ./libcrypto.a ./libiconv.a ./libm.a ./libstdc++.a -lpthread
128+
## FIXME: update standards to "-std=c++11", see #164.
129+
CPPFLAGS = -g -Wall -pipe -fno-stack-protector -Wno-write-strings -Wstrict-aliasing=0 -Wno-uninitialized -DPTHREADS -Wno-unused-but-set-variable -std=c++98 $(STATIC)
130+
#LIBS= -L. ./libssl.a ./libcrypto.a ./libiconv.a ./libm.a ./libstdc++.a -lpthread
130131
# apt-get install libssl-dev (to provide libssl and libcrypto)
131132
# to build static libiconv.a do a './configure --enable$(STATIC)' then 'make'
132133
# in the iconv directory
133-
LIBS= -lm -lpthread -lssl -lcrypto ./libiconv64.a ./libz64.a
134+
LIBS= -lm -lpthread -lssl -lcrypto -lz
134135

135136
endif
136137

@@ -145,7 +146,7 @@ endif
145146
# let's keep the libraries in the repo for easier bug reporting and debugging
146147
# in general if we can. the includes are still in /usr/include/ however...
147148
# which is kinda strange but seems to work so far.
148-
#LIBS= -L. ./libz.a ./libssl.a ./libcrypto.a ./libiconv.a ./libm.a ./libgcc.a ./libpthread.a ./libc.a ./libstdc++.a
149+
#LIBS= -L. ./libssl.a ./libcrypto.a ./libiconv.a ./libm.a ./libgcc.a ./libpthread.a ./libc.a ./libstdc++.a
149150

150151

151152

@@ -177,7 +178,7 @@ vclean:
177178
@echo ""
178179
@echo "If make fails on Ubuntu then first run:"
179180
@echo ""
180-
@echo "sudo apt-get update ; sudo apt-get install make g++ libssl-dev"
181+
@echo "sudo apt-get update ; sudo apt-get install make g++ libssl-dev zlib1g-dev"
181182
@echo ""
182183
@echo ""
183184
@echo "If make fails on RedHat then first run:"
@@ -221,7 +222,7 @@ cygwin:
221222

222223

223224
gb32:
224-
make CPPFLAGS="-m32 -g -Wall -pipe -fno-stack-protector -Wno-write-strings -Wstrict-aliasing=0 -Wno-uninitialized -DPTHREADS -Wno-unused-but-set-variable $(STATIC)" LIBS=" -L. ./libz.a ./libssl.a ./libcrypto.a ./libiconv.a ./libm.a ./libstdc++.a -lpthread " gb
225+
make CPPFLAGS="-m32 -g -Wall -pipe -fno-stack-protector -Wno-write-strings -Wstrict-aliasing=0 -Wno-uninitialized -DPTHREADS -Wno-unused-but-set-variable $(STATIC)" LIBS=" -L. ./libssl.a ./libcrypto.a ./libiconv.a ./libm.a ./libstdc++.a -lpthread " gb
225226

226227
#iana_charset.cpp: parse_iana_charsets.pl character-sets supported_charsets.txt
227228
# ./parse_iana_charsets.pl < character-sets

0 commit comments

Comments
 (0)
Please sign in to comment.