From a8b4624387f580759739aa064e3f489bf28afeae Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sat, 25 Apr 2020 13:01:33 -0400 Subject: Replace wcwidth implementation with that of musl Imported from musl 1.2.0 sources. --- port/wcwidth/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'port/wcwidth/Makefile') diff --git a/port/wcwidth/Makefile b/port/wcwidth/Makefile index 4fbb2863..f6932d6d 100644 --- a/port/wcwidth/Makefile +++ b/port/wcwidth/Makefile @@ -1,13 +1,16 @@ PREFIX = ~/.local -CFLAGS = -Dmk_wcwidth=wcwidth -Dmk_wcswidth=wcswidth - -OBJS = wcwidth.o +OBJS = wcwidth.o wcswidth.o DYLIB = libwcwidth.dylib ${DYLIB}: ${OBJS} ${CC} -dynamiclib ${LDFLAGS} ${OBJS} -o $@ +wcwidth.o: nonspacing.h wide.h + +clean: + rm -f ${DYLIB} ${OBJS} + install: ${DYLIB} install -d ${PREFIX}/lib install -m 644 ${DYLIB} ${PREFIX}/lib -- cgit 1.4.1