delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2015/04/30/01:58:28

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:date:message-id:subject:from:to:content-type;
bh=jBFy2JdwT2wF/EULQoOJLgj8dT4yXMtFXs6YEEyR2fI=;
b=jbangD4F40SIHsIKBgeHlBmRYcxjsFhjF6wl5ok3YW2+v9aavRfd9Kqsa/4loRVYR4
IjbVM4bRQ2Sa0K9Hea4l0V9UNWw5RYqtkiyd/UXI8lvt5SN7RVGRRQe0NvBhFQRQ/iY5
B681oja9++kBxKp7K8AyX3nrualgn6bDUX3kC0KJbAMShunBu6sWe9NA+KdRvm+gDnY4
4BwCbG0lZSb3XH2XDIvyg0sS+O1N0cBgWAq3iPQN46UF6h3c6kyYzeUlf08ZQYjN3yAC
ptmrqn5e5B5Lutg5pIELGLcAXSz8RVptjQSLLRVjsYnz0YSbgVf/j1yB4Jc7N+KuXAeV
uX9w==
MIME-Version: 1.0
X-Received: by 10.50.25.137 with SMTP id c9mr1398297igg.29.1430373491833; Wed,
29 Apr 2015 22:58:11 -0700 (PDT)
Date: Thu, 30 Apr 2015 08:58:11 +0300
Message-ID: <CAA2C=vDPRPCNO309bGj=J98gBgoCmmxGr8F8yhFurv1eQUVK-A@mail.gmail.com>
Subject: makefile.cfg patch
From: Ozkan Sezer <sezeroz AT gmail DOT com>
To: djgpp <djgpp AT delorie DOT com>
Reply-To: djgpp AT delorie DOT com

--047d7bdca50ce0afa80514eac7fa
Content-Type: text/plain; charset=UTF-8

I believe the following is more suitable for detecting gcc >= 4.x
(also attached as a patch file.)  Please review and apply if Ok.

--
O.S.


Index: src/makefile.cfg
===================================================================
RCS file: /cvs/djgpp/djgpp/src/makefile.cfg,v
retrieving revision 1.4
diff -u -r1.4 makefile.cfg
--- src/makefile.cfg	29 Apr 2015 15:14:32 -0000	1.4
+++ src/makefile.cfg	30 Apr 2015 05:52:33 -0000
@@ -8,15 +8,16 @@
 MTUNE := -mcpu=i586
 IQUOTE := -I. -I-

-ifeq ($(GCC_MAJOR),3)
-ifeq ($(GCC_MINOR),4)
-MTUNE := -mtune=i586
-endif
+ifeq ($(filter 2 3,$(GCC_MAJOR)),)
+# we have gcc >= 4.x
+MTUNE := -mtune=i586
+IQUOTE := -iquote .
 endif

-ifneq ($(filter 4 5 6,$(GCC_MAJOR)),)
+ifeq ($(GCC_MAJOR),3)
+ifeq ($(GCC_MINOR),4)
 MTUNE := -mtune=i586
-IQUOTE := -iquote .
+endif
 endif

 config:	gcc.opt gpp.opt gcc-l.opt

--047d7bdca50ce0afa80514eac7fa
Content-Type: text/x-diff; charset=US-ASCII; name="makefile.cfg.patch"
Content-Disposition: attachment; filename="makefile.cfg.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: file0

SW5kZXg6IHNyYy9tYWtlZmlsZS5jZmcKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL2N2cy9kamdwcC9k
amdwcC9zcmMvbWFrZWZpbGUuY2ZnLHYKcmV0cmlldmluZyByZXZpc2lvbiAxLjQKZGlmZiAtdSAt
cjEuNCBtYWtlZmlsZS5jZmcKLS0tIHNyYy9tYWtlZmlsZS5jZmcJMjkgQXByIDIwMTUgMTU6MTQ6
MzIgLTAwMDAJMS40CisrKyBzcmMvbWFrZWZpbGUuY2ZnCTMwIEFwciAyMDE1IDA1OjUxOjMzIC0w
MDAwCkBAIC04LDE1ICs4LDE2IEBACiBNVFVORSA6PSAtbWNwdT1pNTg2CiBJUVVPVEUgOj0gLUku
IC1JLQogCi1pZmVxICgkKEdDQ19NQUpPUiksMykKLWlmZXEgKCQoR0NDX01JTk9SKSw0KQotTVRV
TkUgOj0gLW10dW5lPWk1ODYgICAgICAKLWVuZGlmCitpZmVxICgkKGZpbHRlciAyIDMsJChHQ0Nf
TUFKT1IpKSwpCisjIHdlIGhhdmUgZ2NjID49IDQueAorTVRVTkUgOj0gLW10dW5lPWk1ODYKK0lR
VU9URSA6PSAtaXF1b3RlIC4KIGVuZGlmCiAKLWlmbmVxICgkKGZpbHRlciA0IDUgNiwkKEdDQ19N
QUpPUikpLCkKK2lmZXEgKCQoR0NDX01BSk9SKSwzKQoraWZlcSAoJChHQ0NfTUlOT1IpLDQpCiBN
VFVORSA6PSAtbXR1bmU9aTU4NgotSVFVT1RFIDo9IC1pcXVvdGUgLgorZW5kaWYKIGVuZGlmCiAK
IGNvbmZpZzoJZ2NjLm9wdCBncHAub3B0IGdjYy1sLm9wdAoK
--047d7bdca50ce0afa80514eac7fa--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019