--- makefile.orig	2016-10-10 13:35:16.980246499 +0200
+++ makefile	2016-10-10 13:35:39.805246090 +0200
@@ -15,9 +15,8 @@
 # If you need <inttypes.h> copy sun-inttypes.h to inttypes.h.
 #
 #CC=cc
-CFLAGS=-g -O -I.
-LD=cc
-LDFLAGS=
+LD=${CC}
+CFLAGS+=-g -I.
 LDTAIL=
 DESTROOT=/usr/local
 
