]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix calls to nasm in cross/ndk-build
authorPo Lu <luangruo@yahoo.com>
Sat, 4 Mar 2023 13:01:28 +0000 (21:01 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 4 Mar 2023 13:01:28 +0000 (21:01 +0800)
* cross/ndk-build/ndk-build-shared-library.mk:
* cross/ndk-build/ndk-build-static-library.mk: Ensure nasm
generates ELF objects.

cross/ndk-build/ndk-build-shared-library.mk
cross/ndk-build/ndk-build-static-library.mk

index 3a40064407052ff0ea80ad0efa276c3fc5c3056a..0af68980cfc73b7ff1163a66c2d726a0ee478971 100644 (file)
@@ -77,7 +77,7 @@ $$(error Trying to build nasm file on non-Intel platform!)
 else
 
 $(call objname,$(LOCAL_MODULE),$(basename $(1))): $(LOCAL_PATH)/$(1)
-       $(NDK_BUILD_NASM) -o $$@ -i $(LOCAL_PATH) -i $$(dir $$<) $(NDK_ASFLAGS_$(LOCAL_MODULE)) $$<
+       $(NDK_BUILD_NASM) -felf -o $$@ -i $(LOCAL_PATH) -i $$(dir $$<) $(NDK_ASFLAGS_$(LOCAL_MODULE)) $$<
 
 endif
 endif
index 3566ee2c65ebd128409bb3e5f2814782be4ebd70..88be518cd392af9d9f4c6a8c3bc3a6f6d2c94ffd 100644 (file)
@@ -65,7 +65,7 @@ $$(error Trying to build nasm file on non-Intel platform!)
 else
 
 $(call objname,$(LOCAL_MODULE),$(basename $(1))): $(call maybe-absolute,$(1),$(2))
-       $(NDK_BUILD_NASM) -o $$@ -i $(LOCAL_PATH) -i $$(dir $$<) $(NDK_ASFLAGS_$(LOCAL_MODULE)) $$<
+       $(NDK_BUILD_NASM) -felf -o $$@ -i $(LOCAL_PATH) -i $$(dir $$<) $(NDK_ASFLAGS_$(LOCAL_MODULE)) $$<
 
 endif
 endif