From 24f3e54aa3bd54c2cb510f54fc6460b8bc4492c0 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Tue, 23 Feb 2016 14:38:47 -0800 Subject: [PATCH] ccextractor: LDFLAGS needs -lpng to fix the build This fixes the following build error: _spupng_write_png in libccx.a(ccx_encoders_spupng.c.o) "_png_write_end", referenced from: _save_spupng in libccx.a(spupng_encoder.c.o) _spupng_write_png in libccx.a(ccx_encoders_spupng.c.o) "_png_write_image", referenced from: _save_spupng in libccx.a(spupng_encoder.c.o) _spupng_write_png in libccx.a(ccx_encoders_spupng.c.o) "_png_write_info", referenced from: _save_spupng in libccx.a(spupng_encoder.c.o) _spupng_write_png in libccx.a(ccx_encoders_spupng.c.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [ccextractor] Error 1 make[1]: *** [CMakeFiles/ccextractor.dir/all] Error 2 make: *** [all] Error 2 Closes Homebrew/homebrew#49466. Signed-off-by: Dominyk Tiller --- Formula/ccextractor.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Formula/ccextractor.rb b/Formula/ccextractor.rb index c3947f91f0..62c52759b6 100644 --- a/Formula/ccextractor.rb +++ b/Formula/ccextractor.rb @@ -16,6 +16,7 @@ class Ccextractor < Formula depends_on "libpng" def install + ENV.append "LDFLAGS", "-lpng" system "cmake", "src", *std_cmake_args system "make" system "make", "install"