Skip to content

Commit

Permalink
Merge pull request #5047 from malaterre/ci20-fpic
Browse files Browse the repository at this point in the history
ci20 fpic
  • Loading branch information
sraue authored May 20, 2017
2 parents 3493081 + 706b02b commit 629cbe6
Show file tree
Hide file tree
Showing 15 changed files with 52 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/audio/libsndfile/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ PKG_CONFIGURE_OPTS_TARGET="--enable-static --disable-shared \
--enable-largefile \
--with-gnu-ld"

pre_configure_target() {
CFLAGS="$CFLAGS -fPIC"
}

post_makeinstall_target() {
rm -rf $INSTALL/usr/bin
}
4 changes: 4 additions & 0 deletions packages/audio/sbc/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@ PKG_AUTORECONF="yes"

PKG_CONFIGURE_OPTS_TARGET="--enable-static --disable-shared \
--disable-tools --disable-tester"

pre_configure_target() {
CFLAGS="$CFLAGS -fPIC"
}
4 changes: 4 additions & 0 deletions packages/audio/soxr/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@ PKG_CMAKE_OPTS_TARGET="-DHAVE_WORDS_BIGENDIAN_EXITCODE=1 \
-DBUILD_TESTS=0 \
-DBUILD_EXAMPLES=1 \
-DBUILD_SHARED_LIBS=OFF"

pre_configure_target() {
CFLAGS="$CFLAGS -fPIC"
}
4 changes: 4 additions & 0 deletions packages/audio/speex/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ PKG_IS_ADDON="no"
PKG_AUTORECONF="yes"

PKG_CONFIGURE_OPTS_TARGET="--disable-shared --enable-static"

pre_configure_target() {
CFLAGS="$CFLAGS -fPIC"
}
3 changes: 3 additions & 0 deletions packages/databases/sqlite/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ PKG_AUTORECONF="yes"
# data to help it make better index choices.
CFLAGS="$CFLAGS -DSQLITE_ENABLE_STAT3"

# relocation R_MIPS_HI16 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
CFLAGS="$CFLAGS -fPIC"

# When this C-preprocessor macro is defined, SQLite includes some additional APIs
# that provide convenient access to meta-data about tables and queries. The APIs that
# are enabled by this option are:
Expand Down
4 changes: 4 additions & 0 deletions packages/devel/lcms2/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ PKG_CONFIGURE_OPTS_TARGET="--enable-static --disable-shared \
--with-zlib --with-threads \
--without-jpeg --without-tiff"

pre_configure_target() {
CFLAGS="$CFLAGS -fPIC"
}

post_makeinstall_target() {
rm -rf $INSTALL/usr/bin
}
4 changes: 4 additions & 0 deletions packages/devel/libugpio/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ PKG_IS_ADDON="no"
PKG_AUTORECONF="yes"

PKG_CONFIGURE_OPTS_TARGET="--enable-static --disable-shared"

pre_configure_target() {
CFLAGS="$CFLAGS -fPIC"
}
4 changes: 4 additions & 0 deletions packages/devel/netbsd-curses/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ PKG_AUTORECONF="no"
export CFLAGS=`echo $CFLAGS | sed -e "s|-D_FORTIFY_SOURCE=.||g"`
export LDFLAGS=`echo $LDFLAGS | sed -e "s|-D_FORTIFY_SOURCE=.||g"`

pre_configure_target() {
CFLAGS="$CFLAGS -fPIC"
}

make_target() {
make HOSTCC="$HOST_CC" CFLAGS="$CFLAGS -D_GNU_SOURCE" PREFIX=/usr all-static
}
Expand Down
4 changes: 4 additions & 0 deletions packages/devel/popt/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ PKG_IS_ADDON="no"
PKG_AUTORECONF="no"

PKG_CONFIGURE_OPTS_TARGET="--enable-static --disable-shared"

pre_configure_target() {
CFLAGS="$CFLAGS -fPIC"
}
4 changes: 4 additions & 0 deletions packages/devel/readline/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ PKG_CONFIGURE_OPTS_TARGET="bash_cv_wcwidth_broken=no \
--with-curses \
--without-purify"

pre_configure_target() {
CFLAGS="$CFLAGS -fPIC"
}

post_makeinstall_target() {
rm -rf $INSTALL/usr/share/readline
}
4 changes: 4 additions & 0 deletions packages/multimedia/rtmpdump/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ PKG_AUTORECONF="no"

MAKEFLAGS="-j1"

pre_configure_target() {
CFLAGS="$CFLAGS -fPIC"
}

make_target() {
make prefix=/usr \
incdir=/usr/include/librtmp \
Expand Down
1 change: 1 addition & 0 deletions packages/print/freetype/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ PKG_CONFIGURE_OPTS_TARGET="--enable-static \
--with-harfbuzz=no"

pre_configure_target() {
CFLAGS="$CFLAGS -fPIC"
# unset LIBTOOL because freetype uses its own
( cd ..
unset LIBTOOL
Expand Down
1 change: 1 addition & 0 deletions packages/security/libgpg-error/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ pre_configure_target() {
esac

cp $ROOT/$PKG_BUILD/src/syscfg/lock-obj-pub.$GPGERROR_TUPLE.h $ROOT/$PKG_BUILD/src/syscfg/lock-obj-pub.$GPGERROR_TARGET.h
CFLAGS="$CFLAGS -fPIC"
}

post_makeinstall_target() {
Expand Down
6 changes: 5 additions & 1 deletion packages/wayland/mtdev/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,8 @@ PKG_LONGDESC="The mtdev is a stand-alone library which transforms all variants o
PKG_IS_ADDON="no"
PKG_AUTORECONF="yes"

PKG_CONFIGURE_OPTS_TARGET="--enable-static --disable-shared"
PKG_CONFIGURE_OPTS_TARGET="--enable-static --disable-shared"

pre_configure_target() {
CFLAGS="$CFLAGS -fPIC"
}
2 changes: 2 additions & 0 deletions packages/x11/other/fontconfig/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ pre_configure_target() {
CFLAGS=`echo $CFLAGS | sed -e "s|-O3|-O2|"`
CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-O3|-O2|"`
CFLAGS="$CFLAGS -I$ROOT/$PKG_BUILD"
CFLAGS="$CFLAGS -fPIC"
CXXFLAGS="$CXXFLAGS -I$ROOT/$PKG_BUILD"
CXXFLAGS="$CXXFLAGS -fPIC"
LDFLAGS="$LDFLAGS -lz"
}

Expand Down

0 comments on commit 629cbe6

Please sign in to comment.