devel/imake cpp/clang/ucc issue

Poul-Henning Kamp phk at phk.freebsd.dk
Sun Dec 9 11:14:43 UTC 2012


I'm installing my new laptop with -current, and ran into a ports problem

This code in ports/devel/imake/Makefile:

	# clang's cpp destroys whitespace, particularly hard tabs in makefiles,
	# which is fatal for imake.
	.if defined(CC) && ${CC} == "clang"
	BUILD_DEPENDS+= ucpp:${PORTSDIR}/devel/ucpp
	RUN_DEPENDS+=   ucpp:${PORTSDIR}/devel/ucpp
	CONFIGURE_ENV+= ac_cv_path_RAWCPP="ucpp -s"

Fails, because clang is called "cc" now.

I'm not sure how to test if "cc" is CLANG og CPP, so I won't
propose a patch...

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-x11 mailing list