Bug 227328

Summary: [PATCH] fix for archivers/snappy to compile with any external compiler
Product: Ports & Packages Reporter: Kenneth Salerno <kennethsalerno>
Component: Individual Port(s)Assignee: Vanilla I. Shu <vanilla>
Status: New ---    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (vanilla)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Description Flags
Patch to fix compilation with external compilers none

Description Kenneth Salerno 2018-04-06 18:07:35 UTC
Created attachment 192293 [details]
Patch to fix compilation with external compilers

Tested with llvm60 (CC=clang60), but this patch will address the following error for any llvm version other than the system compiler in base:

In file included from snappy_unittest.cc:40:
./snappy-test.h:110:10: fatal error: 'lzo/lzo1x.h' file not found

Added a BUILD_DEPENDS and -I CFLAGS patch to Makefile to get this result instead:
===>   snappy-1.1.6 depends on file: /usr/local/include/lzo/lzo1x.h - found

See attached patch for your review.

Thank you.