libs/dtc: fix build on x86_64
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Tue, 10 Jan 2017 15:14:46 +0000 (17:14 +0200)
committerYousong Zhou <yszhou4tech@gmail.com>
Tue, 10 Jan 2017 16:01:37 +0000 (00:01 +0800)
commitab5afd7620a1b7e18a55e07a031fa1898788be11
tree7f4be5c90674bd308cfe78bf088f16197b21d8b4
parent9a30e8af42a3e1123128e96071c4b80b488a0a30
libs/dtc: fix build on x86_64

Fixes build error:
```
x86_64-openwrt-linux-musl-gcc -L/home/sandu/work/lede/staging_dir/target-x86_64_musl-1.1.15/usr/lib -L/home/sandu/work/lede/staging_dir/target-x86_64_musl-1.1.15/lib -L/home/sandu/work/lede/staging_dir/toolchain-x86_64_gcc-5.4.0_musl-1.1.15/usr/lib -L/home/sandu/work/lede/staging_dir/toolchain-x86_64_gcc-5.4.0_musl-1.1.15/lib -znow -zrelro  -fPIC -shared -Wl,--version-script=libfdt/version.lds -Wl,-soname,libfdt.so.1 -o libfdt/libfdt-1.4.2.so libfdt/fdt.o libfdt/fdt_ro.o libfdt/fdt_wip.o libfdt/fdt_sw.o libfdt/fdt_rw.o libfdt/fdt_strerror.o libfdt/fdt_empty_tree.o libfdt/fdt_addresses.o
/home/sandu/work/lede/staging_dir/toolchain-x86_64_gcc-5.4.0_musl-1.1.15/lib64/gcc/x86_64-openwrt-linux-musl/5.4.0/../../../../x86_64-openwrt-linux-musl/bin/ld: libfdt/fdt.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
libfdt/fdt.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:283: recipe for target 'libfdt/libfdt-1.4.2.so' failed
make[4]: *** [libfdt/libfdt-1.4.2.so] Error 1
```

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
libs/dtc/Makefile