Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 499b8c9

Browse files
committed
Always use -fPIC
1 parent 5e9bdcd commit 499b8c9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5507,8 +5507,8 @@ LIBS="$LIBS $pthread_lib"
55075507
CXXFLAGS="$CXXFLAGS $pthread_cflags"
55085508

55095509

5510-
CFLAGS="$CFLAGS -O2 -funroll-all-loops"
5511-
CXXFLAGS="$CXXFLAGS -O2 -funroll-all-loops"
5510+
CFLAGS="$CFLAGS -O2 -fPIC -funroll-all-loops"
5511+
CXXFLAGS="$CXXFLAGS -O2 -fPIC -funroll-all-loops"
55125512

55135513

55145514

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ LIBS="$LIBS $pthread_lib"
114114
CXXFLAGS="$CXXFLAGS $pthread_cflags"
115115
AC_SUBST(pthread_lib)
116116

117-
CFLAGS="$CFLAGS -O2 -funroll-all-loops"
118-
CXXFLAGS="$CXXFLAGS -O2 -funroll-all-loops"
117+
CFLAGS="$CFLAGS -O2 -fPIC -funroll-all-loops"
118+
CXXFLAGS="$CXXFLAGS -O2 -fPIC -funroll-all-loops"
119119
AC_SUBST(CFLAGS)
120120
AC_SUBST(CXXFLAGS)
121121

spooles/patches/patch-Make.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# CFLAGS = -Wall -pg
1515
# CFLAGS = $(OPTLEVEL) -D_POSIX_C_SOURCE=199506L
1616
- CFLAGS = $(OPTLEVEL)
17-
+ CFLAGS += -O2 -funroll-all-loops $(pthead_cflags)
17+
+ CFLAGS += -O2 -fPIC -funroll-all-loops $(pthead_cflags)
1818
# CFLAGS = -Wall $(OPTLEVEL)
1919
#
2020
#----------------------------------------

0 commit comments

Comments
 (0)