public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-tcltk/tcl-sql/files: ldflags.patch
@ 2010-12-07 18:58 Justin Lecher (jlec)
  0 siblings, 0 replies; 2+ messages in thread
From: Justin Lecher (jlec) @ 2010-12-07 18:58 UTC (permalink / raw
  To: gentoo-commits

jlec        10/12/07 18:58:17

  Added:                ldflags.patch
  Log:
  Resepct LDFLAGS and QA, #334977
  
  (Portage version: 2.2.0_alpha7/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  dev-tcltk/tcl-sql/files/ldflags.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tcltk/tcl-sql/files/ldflags.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tcltk/tcl-sql/files/ldflags.patch?rev=1.1&content-type=text/plain

Index: ldflags.patch
===================================================================
diff --git a/Makefile b/Makefile
index 81a80ea..7738920 100644
--- a/Makefile
+++ b/Makefile
@@ -22,8 +22,8 @@ OBJS	   = $(SRC:%.cc=$(OBJ_DIR)/%.o)
 
 # -- Configurable parameters: ----------------------------
 # Section II:
-CC	= g++
-LD	= g++
+CXX ?= g++
+LD	?= g++
 FLAGS	= -Wall
 # include the path to your libmysqlclient as one of the -L's
 LD_FLAGS = -L/usr/lib/mysql -L/usr/local/mysql/lib \
@@ -69,10 +69,10 @@ CURDATE = `date +%y%m%d`
 all:	sql.so
 
 $(OBJ_DIR)/%.o: %.cc
-	$(CC) -c $(INCLUDE) $(EXTRA_FLAGS) $(FLAGS) -o $@ $<
+	$(CXX) $(CXXFLAGS) -c $(INCLUDE) $(EXTRA_FLAGS) $(FLAGS) -o $@ $<
 
 sql.so:	$(OBJS)
-	$(LD) $(OBJS) $(EXTRA_LINKS) $(LD_FLAGS) $(EXTRA_LD_FLAGS) -o sql.so
+	$(CXX) $(LDFLAGS) $(OBJS) $(EXTRA_LINKS) $(LD_FLAGS) $(EXTRA_LD_FLAGS) -o sql.so
 
 clean:
 	@ rm -f *~ $(OBJ_DIR)/*.o sql.so






^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in dev-tcltk/tcl-sql/files: ldflags.patch
@ 2010-12-15 20:06 Justin Lecher (jlec)
  0 siblings, 0 replies; 2+ messages in thread
From: Justin Lecher (jlec) @ 2010-12-15 20:06 UTC (permalink / raw
  To: gentoo-commits

jlec        10/12/15 20:06:32

  Modified:             ldflags.patch
  Log:
  Anothe linking fix
  
  (Portage version: 2.2.0_alpha6/cvs/Linux x86_64)

Revision  Changes    Path
1.2                  dev-tcltk/tcl-sql/files/ldflags.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tcltk/tcl-sql/files/ldflags.patch?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tcltk/tcl-sql/files/ldflags.patch?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-tcltk/tcl-sql/files/ldflags.patch?r1=1.1&r2=1.2

Index: ldflags.patch
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-tcltk/tcl-sql/files/ldflags.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ldflags.patch	7 Dec 2010 18:58:17 -0000	1.1
+++ ldflags.patch	15 Dec 2010 20:06:31 -0000	1.2
@@ -22,7 +22,7 @@
  
  sql.so:	$(OBJS)
 -	$(LD) $(OBJS) $(EXTRA_LINKS) $(LD_FLAGS) $(EXTRA_LD_FLAGS) -o sql.so
-+	$(CXX) $(LDFLAGS) $(OBJS) $(EXTRA_LINKS) $(LD_FLAGS) $(EXTRA_LD_FLAGS) -o sql.so
++	$(CXX) $(LDFLAGS) $(EXTRA_LINKS) $(OBJS) -o sql.so $(LD_FLAGS) $(EXTRA_LD_FLAGS) -ltcl
  
  clean:
  	@ rm -f *~ $(OBJ_DIR)/*.o sql.so






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-15 20:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-15 20:06 [gentoo-commits] gentoo-x86 commit in dev-tcltk/tcl-sql/files: ldflags.patch Justin Lecher (jlec)
  -- strict thread matches above, loose matches on Subject: below --
2010-12-07 18:58 Justin Lecher (jlec)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox