From 9bc8ca088ab64fea2f815e1aa1971bdde23ef0d1 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 18 Nov 2020 15:13:02 +0000 Subject: In progress FossilOrigin-Name: ff7fff8d77d6179426bd8ca6c7585423605896e3 --- Makefile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2d5df69..7c56037 100644 --- a/Makefile +++ b/Makefile @@ -23,16 +23,15 @@ PREFIX := /usr/local/ DESTDIR := SRCS := ${SRCS_DIR}c_bsdsetsid.S -SRCS += ${SRCS_DIR}u_write.S OBJS = ${SRCS:.S=.o} -ASM ?= yasm -ASMFLAGS := -felf64 -ASMFLAGS += -pgas +AS := yasm +ASFLAGS := -felf64 +ASFLAGS += -pgas -LD := ld.lld -LDFLAGS := +LD := ld +LDFLAGS := -melf_x86_64 NAME := bsdsetsid @@ -41,10 +40,10 @@ RM := rm -f .SUFFIXES: .S .o .S.o: - ${ASM} ${ASMFLAGS} -o ${.TARGET} ${.IMPSRC} + ${AS} ${ASFLAGS} -o ${.TARGET} ${.IMPSRC} ${NAME}: ${OBJS} - ${LD} -o ${.TARGET} ${.ALLSRC} + ${LD} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} all: ${NAME} -- cgit v1.2.3