Browse code

- removed -m32 from gcc3.x/sparc64 (this will probably make it work with *bsd/sparc64 which are 64bit only)

Andrei Pelinescu-Onciul authored on 10/06/2003 11:36:14
Showing 2 changed files
... ...
@@ -24,6 +24,8 @@
24 24
 #              removed -DDIGEST_DOMAIN (andrei)
25 25
 #  2003-05-30  added extra_defs (andrei)
26 26
 #  2003-06-06  moved compiler detection before DEFS (andrei)
27
+#  2003-06-10  removed -m32 for gcc 3.x/sparc64  -- it will use 
28
+#              arch. default: -m32 on solaris, -m64 on *bsd (andrei)
27 29
 
28 30
 
29 31
 # check if already included/exported
... ...
@@ -372,6 +374,7 @@ ifeq ($(use_fast_lock), yes)
372 372
 endif
373 373
 
374 374
 CFLAGS=
375
+LDFLAGS=
375 376
 # setting CFLAGS
376 377
 ifeq ($(mode), release)
377 378
 	#if i386
... ...
@@ -432,7 +435,10 @@ ifeq		($(CC_NAME), gcc)
432 432
 ifeq			($(CC_SHORTVER), 3.0)
433 433
 					CPU ?= ultrasparc
434 434
 					#use 32bit for now
435
-					CFLAGS+= -mcpu=ultrasparc -mtune=$(CPU)  -m32  \
435
+					CFLAGS+= -mcpu=ultrasparc -mtune=$(CPU)   \
436
+					# use -m64 to force 64 bit (but add it also to LDFLAGS), 
437
+					# -m32 for 32 bit (default on solaris),
438
+					# nothing for arch. default
436 439
 					# -mcpu=v9 or ultrasparc? # -mtune implied by -mcpu
437 440
 					#-mno-epilogue #try to inline function exit code
438 441
 					#-mflat # omit save/restore
... ...
@@ -509,7 +515,6 @@ endif	#ARCH, i386
509 509
 CFLAGS+= $(CC_EXTRA_OPTS)
510 510
 
511 511
 
512
-LDFLAGS=
513 512
 # setting LDFLAGS
514 513
 ifeq	($(CC_NAME), gcc)
515 514
 ifeq		($(ARCH), sparc64)
... ...
@@ -36,7 +36,7 @@ x (different way) add request header bitmap field for the modules
36 36
 x fix bind_address for tcp (in some  way)
37 37
 - add conflict in debs/rpms/etc (conflict w/ older ser-mysql, ser-jabber)
38 38
 - new packages ser-radius etc
39
-- tcp_destroy (called on ser exit)
39
+x tcp_destroy (called on ser exit)
40 40
 - BUG:?? ipv6 only and try to send to ipv4 => getsendsocket=>0 (send_ipv6=0)
41 41
   the reverse is also true
42 42
 - SUBST lumps for replies (involves setting the send_socket in forward_reply,