From 5d5f195e93fd5ec06af1707fdccb084bd87fed7f Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Thu, 26 Oct 2023 15:50:51 +0200 Subject: [PATCH] Remove -m64 in LDFLAGS * It is not accepted by gcc. --- src/main/c/cext-trampoline/Makefile | 2 +- src/main/c/spawn-helper/Makefile | 2 +- src/main/c/truffleposix/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/c/cext-trampoline/Makefile b/src/main/c/cext-trampoline/Makefile index d642803cbbf4..636495966781 100644 --- a/src/main/c/cext-trampoline/Makefile +++ b/src/main/c/cext-trampoline/Makefile @@ -19,7 +19,7 @@ CC := gcc endif CFLAGS := -Wall -Werror -fPIC -std=c99 -g -LDFLAGS := -m64 +LDFLAGS := ROOT := $(realpath ../../../..) RUBY_HDR_DIR := $(ROOT)/lib/cext/include diff --git a/src/main/c/spawn-helper/Makefile b/src/main/c/spawn-helper/Makefile index 211268479a72..fa6214153d86 100644 --- a/src/main/c/spawn-helper/Makefile +++ b/src/main/c/spawn-helper/Makefile @@ -2,7 +2,7 @@ Q$(MX_VERBOSE) = @ CC := cc CFLAGS := -Wall -Werror -std=c99 -LDFLAGS := -m64 +LDFLAGS := spawn-helper: spawn-helper.c $(Q) $(CC) $(LDFLAGS) -o $@ $< diff --git a/src/main/c/truffleposix/Makefile b/src/main/c/truffleposix/Makefile index b15efca6d927..19db470d38f1 100644 --- a/src/main/c/truffleposix/Makefile +++ b/src/main/c/truffleposix/Makefile @@ -9,7 +9,7 @@ endif CC := cc CFLAGS := -Wall -Werror -fPIC -std=c99 -g -LDFLAGS := -m64 +LDFLAGS := ifeq ($(OS),Linux) LDFLAGS += -lrt