$NetBSD: patch-aa,v 1.10 2020/08/08 02:09:01 leot Exp $ Honors user's {C,LD}FLAGS and do not strip. --- src/Makefile.orig 2019-04-10 16:53:34.000000000 +0000 +++ src/Makefile @@ -30,11 +30,11 @@ OMPFLAGS = #OMPFLAGS = -openmp # Sun Studio with OpenMP (set the OMP_NUM_THREADS env var at runtime) #OMPFLAGS = -xopenmp -CFLAGS = -c -Wall -O2 -fomit-frame-pointer $(OMPFLAGS) +CFLAGS += -c -Wall $(OMPFLAGS) # CFLAGS for use on the main john.c file only CFLAGS_MAIN = $(CFLAGS) ASFLAGS = -c $(OMPFLAGS) -LDFLAGS = -s $(OMPFLAGS) +LDFLAGS += $(OMPFLAGS) OPT_NORMAL = -funroll-loops # Remove the "-Os" if you're using an ancient version of gcc OPT_INLINE = -Os -funroll-loops -finline-functions