Bug 227328 - [PATCH] fix for archivers/snappy to compile with any external compiler
Summary: [PATCH] fix for archivers/snappy to compile with any external compiler
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Vanilla I. Shu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-06 18:07 UTC by Kenneth Salerno
Modified: 2018-04-06 18:07 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (vanilla)


Attachments
Patch to fix compilation with external compilers (537 bytes, patch)
2018-04-06 18:07 UTC, Kenneth Salerno
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.