On Mon, May 11, 2020 at 10:46 AM Sean Nyekjaer <[email protected]> wrote: > > Revert "SConstruct: Add test for sizeof(time_t), result in SIZEOF_TIME_T." > Do not cross-compile a small for it to be executed on the host. > > Signed-off-by: Sean Nyekjaer <[email protected]>
This causes gpsd to fail to build when cross compiling for Aarch64 with this error: | aarch64-oe-linux-ld --sysroot=/home/alistair/oe-master/build/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0/recipe-sysroot -o libgps.so.25.0.0 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed --sysroot=/home/alistair/oe-master/build/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0/recipe-sysroot -pthread -shared -Wl,-Bsymbolic -Wl,-soname=libgps.so.25 ais_json.os bits.os gpsdclient.os gps_maskdump.os gpsutils.os hex.os json.os libgps_core.os libgps_dbus.os libgps_json.os libgps_shm.os libgps_sock.os netlib.os os_compat.os rtcm2_json.os rtcm3_json.os shared_json.os timespec_str.os libgpsmm.os -L. -L/home/alistair/oe-master/build/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0/recipe-sysroot/usr/lib -lrt -lm -ldbus-1 -lbluetooth -ldbus-1 -lrt | aarch64-oe-linux-ld: unrecognized option '-Wl,-O1' | aarch64-oe-linux-ld: use the --help option for usage information | scons: *** [libgps.so.25.0.0] Error 1 | scons: building terminated because of errors. Reverting this patch fixes the issue. Alistair
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#84357): https://lists.openembedded.org/g/openembedded-devel/message/84357 Mute This Topic: https://lists.openembedded.org/mt/74141530/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
