Bug 63483 - Choice of compiler for png2ico
Summary: Choice of compiler for png2ico
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pav Lucistnik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-28 13:00 UTC by regisr
Modified: 2004-03-01 12:26 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description regisr 2004-02-28 13:00:25 UTC
      Selecting a different compiler by setting CXX in env doesn't work, the Makefile contains always g++, sausing compiler errors.
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2004-02-28 13:51:07 UTC
http://www.freebsd.org/cgi/query-pr.cgi?pr=63483

Can a submitter or a maintainer provide a patch for this issue?

-- 
Pav Lucistnik <pav@oook.cz>
              <pav@FreeBSD.org>

But soft, what light through yonder window breaks? It is the East,
and Juliet is the sun! Arise, fair sun, and kill the envious moon,
who is already sick and pale with grief that thou her maid art far
more fair than she.
Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2004-02-28 13:51:12 UTC
State Changed
From-To: open->feedback

Asked around for a patch. 


Comment 3 Pav Lucistnik freebsd_committer freebsd_triage 2004-02-28 13:51:12 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pav

Track.
Comment 4 Franz Klammer 2004-03-01 09:33:38 UTC
patch to enable ${CXX}

franz.

===== patch begins here =====
--- png2ico/files/patch-Makefile.orig   Tue Apr 15 02:54:19 2003
+++ png2ico/files/patch-Makefile        Mon Mar  1 10:19:43 2004
@@ -1,11 +1,17 @@
 --- Makefile.orig      Sat Dec  7 23:49:52 2002
-+++ Makefile   Tue Apr 15 02:32:25 2003
-@@ -1,6 +1,6 @@
++++ Makefile   Mon Mar  1 10:18:26 2004
+@@ -1,11 +1,11 @@
 -CPPFLAGS=-W -Wall -O2 -finline-functions
-+CPPFLAGS=-W -Wall -O2 -finline-functions -I/usr/local/include 
-L/usr/local/lib
++CPPFLAGS=-W -Wall -O -g -pipe -march=pentium4 -finline-functions 
-I/usr/local/include -L/usr/local/lib
  #CPPFLAGS=-O0 -W -Wall
 -DEBUG=-g
 +#DEBUG=-g
 
  all: png2ico
 
+ png2ico: png2ico.cpp
+-      g++ $(CPPFLAGS) $(DEBUG) -o $@ $< -lpng -lz -lm
++      ${CXX} $(CPPFLAGS) $(DEBUG) -o $@ $< -lpng -lz -lm
+
+ doc/png2ico.txt: doc/png2ico.1
+       man $< |sed  -e $$'s/.\b\\(.\\)/\\1/g' -e 's/\(.*\)/\1'$$'\r/' >$@
===== patch ends here =====
Comment 5 Pav Lucistnik freebsd_committer freebsd_triage 2004-03-01 12:26:47 UTC
State Changed
From-To: feedback->closed

Maintainer's patch committed.