Commit Graph

9 Commits

Author SHA1 Message Date
Sebastian Kemper 6a90253c80 mysql: remove $(FPIC), fix AARCH64 builds
mysql already makes sure that the compiler emits position-independent code when
appropriate, namely when compiling shared objects. The mysql build system puts
its own flag behind the CFLAGS, overriding whatever was set before.

Additionally, forcing applications into PIC mode will just slow them
down (mysql not only provides shared objects but also applications).

Last but not least OpenWrt's $(FPIC) can cause build failures. This is
the case currently for AARCH64:

  net_serv.o: In function `my_net_init':
  net_serv.cc:(.text+0x28): relocation truncated to fit: R_AARCH64_LD64_GOTPAGE_LO15 against symbol `my_malloc' defined in .text section in ../mysys/libmysys.a(my_malloc.o)
  net_serv.cc:(.text+0x28): warning: Too many GOT entries for -fpic, please recompile with -fPIC
  /data/bowl-builder/aarch64_cortex-a53/build/sdk/staging_dir/toolchain-aarch64_cortex-a53_gcc-7.3.0_musl/bin/../lib/gcc/aarch64-openwrt-linux-musl/7.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld: final link failed: Symbol needs debug section which does not exist
  collect2: error: ld returned 1 exit status
  Makefile:955: recipe for target 'mysqld' failed
  make[7]: *** [mysqld] Error 1

Remove $(FPIC) from TARGET_CFLAGS to address all of the above.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-24 13:15:29 +01:00
Matthias Schiffer 00fce347a5
treewide: fix incorrect *_BUILD_DEPENDS
Build depends refer to source package names, not binary package names.

In many cases, PKG_BUILD_DEPENDS simply duplicated runtime dependencies of
a source package's binary packages; as the corresponding source packages
are implicitly added as bulid dependencies, PKG_BUILD_DEPENDS can simply be
dropped in these cases. In the other cases, *_BUILD_DEPENDS is fixed to
refer to the correct source package name.

Dependency of mysql-server is adjusted from libncursesw to libncurses
(as libncursesw is a virtual package provided by libncurses), so the build
dependency on ncurses is emitted unconditionally.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2018-01-09 16:36:02 +01:00
Etienne Champetier 4006865ae8 treewide: run "make check FIXUP=1"
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git

(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-08-29 21:41:14 -07:00
Jo-Philipp Wich 9843f170d7 treewide: replace my defunct email address
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-06-07 12:00:59 +02:00
Jo-Philipp Wich 2dbf4507c3 mysql: fix datadir check in init script
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-07-02 14:22:02 +02:00
Steven Barth 103f622523 Revert "mysql: disable SSP for ppc (toolchain issue?)"
This reverts commit e1e671139c.

Signed-off-by: Steven Barth <steven@midlink.org>
2015-06-22 12:03:48 +02:00
Steven Barth e1e671139c mysql: disable SSP for ppc (toolchain issue?)
Signed-off-by: Steven Barth <steven@midlink.org>
2015-06-19 16:52:58 +02:00
Nicolas Thill 64332b7cdf mysql: only use g++-uc wrapper with uClibc++
Signed-off-by: Nicolas Thill <nico@openwrt.org>
2015-04-03 07:44:23 +02:00
Jo-Philipp Wich 0a4217b2fe mysql: import from oldpackages, add myself as maintainer
No updates to the package as it is the latest release of the still
supported 5.1 release series.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-08-11 16:05:06 +02:00