Denys Vlasenko | 1ef3ce9 | 2017-07-19 17:56:56 +0200 | [diff] [blame] | 1 | # When building a library, even intra-library references, |
2 | # such as from find_applet_by_name() to applet_names[], | ||||
3 | # don't work with -fpic on sparc, needs -fPIC. | ||||
4 | # Don't know why it fails in this case but works when | ||||
5 | # a binary is being built. | ||||
6 | # | ||||
7 | # (if is superfluous, ARCH_FPIC is only used by library build, but it | ||||
8 | # demonstrates the point: non-pic binary does not need it) | ||||
9 | ifeq ($(CONFIG_BUILD_LIBBUSYBOX),y) | ||||
10 | ARCH_FPIC = -fPIC | ||||
11 | endif |