patch for samba-2.2.4 on Solaris

Gerald Carter jerry at samba.org
Thu May 9 06:47:02 GMT 2002


On Wed, 8 May 2002, Harald Koenig wrote:

> samba-2.2.4 doesn't build anymore on Solaris when using gcc.
> this problem was inserted after samba-2.2.3a-cvs-20020423.
> 
> the problem is caused in source/configure in
> 
...
> 
> because ac_cv_prog_CC is not set at all, so PICFLAG="-KPIC" will be 
> used for gcc. 
> and ac_cv_prog_CC doesn't get set because ac_tool_prefix is empty...
> 
> my ugly workaround patch for Solaris right now is:
> 

Thanks for the patch, but I'm afraid is it wrong.
Apply this patch to configure.in, rerun autoconf,
recompile and let me know.








cheers, jerry
 ---------------------------------------------------------------------
 Hewlett-Packard                                     http://www.hp.com
 SAMBA Team                                       http://www.samba.org
 --                                            http://www.plainjoe.org
 "Sam's Teach Yourself Samba in 24 Hours" 2ed.      ISBN 0-672-32269-2
 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--

-------------- next part --------------
Index: configure.in
===================================================================
RCS file: /data/cvs/samba/source/configure.in,v
retrieving revision 1.130.4.136
diff -u -r1.130.4.136 configure.in
--- configure.in	2002/05/09 13:26:54	1.130.4.136
+++ configure.in	2002/05/09 13:44:40
@@ -853,7 +853,7 @@
 			BLDSHARED="true"
 			LDSHFLAGS="-G"
 			SONAMEFLAG="-h "
-			if test "${ac_cv_prog_CC}" = "gcc"; then
+			if test "${GCC}" = "yes"; then
 				PICFLAG="-fPIC"
 			else
 				PICFLAG="-KPIC"
@@ -884,7 +884,7 @@
 			LDSHFLAGS="-set_version sgi1.0 -shared"
 			SONAMEFLAG="-soname "
 			SHLD="\${LD}" 
-			if test "${ac_cv_prog_CC}" = "gcc"; then
+			if test "${GCC}" = "yes"; then
 				PICFLAG="-fPIC"
 			else 
 				PICFLAG="-KPIC"


More information about the samba-technical mailing list