Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jul 2018 22:10:28 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r336591 - head/lib/libproc/tests
Message-ID:  <201807212210.w6LMASae075677@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Sat Jul 21 22:10:28 2018
New Revision: 336591
URL: https://svnweb.freebsd.org/changeset/base/336591

Log:
  Disable optimization of the libproc test program.
  
  Dead code elimination may remove symbols that are required by the tests.
  
  Reported by:	Jenkins, via asomers
  MFC after:	1 week

Modified:
  head/lib/libproc/tests/Makefile

Modified: head/lib/libproc/tests/Makefile
==============================================================================
--- head/lib/libproc/tests/Makefile	Sat Jul 21 21:34:10 2018	(r336590)
+++ head/lib/libproc/tests/Makefile	Sat Jul 21 22:10:28 2018	(r336591)
@@ -12,5 +12,6 @@ LIBADD=	elf proc rtld_db util
 # Ensure that symbols aren't stripped from the test program, as they're needed
 # for testing symbol lookup.
 STRIP=
+CFLAGS.target_prog.c+= -O0
 
 .include <bsd.test.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807212210.w6LMASae075677>