delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/05/14/00:03:05

From: jeffdb AT netzone DOT com ("Mikey")
Subject: Re: Picking up include directories automatically
14 May 1997 00:03:05 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199705131423.HAA12797.cygnus.gnu-win32@nz1.netzone.com>
Mime-Version: 1.0
X-Mailer: Microsoft Outlook Express 4.71.0544.0
Original-To: "Jon Thackray" <jont AT harlequin DOT co DOT uk>
Original-Cc: "cygnus" <gnu-win32 AT cygnus DOT com>
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE Engine V4.71.0544.0
Original-Sender: owner-gnu-win32 AT cygnus DOT com

This is a multi-part message in MIME format.

------=_NextPart_000_01BC5F45.7C496C20
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Here is an example, it's for mingw32, just make sure you don't insert or
delete any lines.
and you'll be fine, BTW there's gcc info in the gcc source dir, it just
dosen't get installed by default.
>jeffdb AT netzone DOT com writes:
> > I think you misunderstood the thrust of my message, if you
> > are willing to alter your specs file
> > you can have any include directories you want, just make sure
> > that the specs file you want to use is in the first directory searched
> > by gcc ie. export LIBRARY_PATH=/usr./lib will use the specs file from
> > /usr/lib
> > if there is one.
> > just make sure you DON'T have one in H-i386-cygwin32/lib/gcc-lib/etc...

> > cause that will get used first
> > so again in your specs file right under the line that says
> > *cpp:
> > put -I/your/include/dir
> > DON"T insert or delete any lines, just type the dirs you want on that
> > line.
> > if you want to exclude all of the system dirs add -nostdinc, then gcc
cpp
> > and cc1 will
> > only search in the dirs you specify.
> > see the gcc man page or info page preprocessor options for more info.
>
>Hmm, the gcc man page doesn't seem to tell me anything about how to
>edit this file, and info doesn't have anything on gcc. Can somebody
>tell me exactly how to edit this file? The current contents
>(presumably the default) are:-
>....
>*cpp:
>%(cpp_cpu) %[cpp_cpu] %{posix:-D_POSIX_SOURCE}
>
>*cc1
>....
> 


------=_NextPart_000_01BC5F45.7C496C20
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment

*asm:=0A=
=0A=
=0A=
*asm_final:=0A=
=0A=
=0A=
*cpp:=0A=
%{posix:-D_POSIX_SOURCE} -iprefix /usr/w/include/ -I/usr/w/include =
%{windows:-I/usr/w/include/nonansi -I/usr/w/include/win32} =
%{console:-I/usr/w/include/nonansi -I/usr/w/include/win32}=0A=
=0A=
*cc1:=0A=
%{!mcpu*: %{m386:-mcpu=3Di386 -march=3Di386} %{mno-486:-mcpu=3Di386 =
-march=3Di386} %{m486:-mcpu=3Di486 -march=3Di486} %{mno-386:-mcpu=3Di486 =
-march=3Di486} %{mno-pentium:-mcpu=3Di486 -march=3Di486} =
%{mpentium:-mcpu=3Dpentium} %{mno-pentiumpro:-mcpu=3Dpentium} =
%{mpentiumpro:-mcpu=3Dpentiumpro}}=0A=
=0A=
*cc1plus:=0A=
=0A=
=0A=
*endfile:=0A=
=0A=
=0A=
*link:=0A=
%{windows:--subsystem windows} %{dll:--dll -e _DllMainCRTStartup AT 12}=0A=
=0A=
*lib:=0A=
%{windows:-luser32 -lgdi32 -lcomdlg32} -lkernel32=0A=
=0A=
*libgcc:=0A=
-lmingw32 -lgcc -lmoldname -lcrtdll=0A=
=0A=
*startfile:=0A=
%{dll:dllcrt0%O%s} %{!dll:crt0%O%s}=0A=
=0A=
*switches_need_spaces:=0A=
=0A=
=0A=
*signed_char:=0A=
%{funsigned-char:-D__CHAR_UNSIGNED__}=0A=
=0A=
*predefines:=0A=
-Di386 -D_WIN32 -D__WIN32__ -DWINNT -D__MINGW32__ -D_X86_=3D1 =
-D__STDC__=3D1 -D__stdcall=3D__attribute__((__stdcall__))   =
-D__cdecl=3D__attribute__((__cdecl__))   -Asystem(winnt) -Acpu(i386) =
-Amachine(i386)=0A=
=0A=
*cross_compile:=0A=
1=0A=
=0A=
*version:=0A=
cygnus-2.7.2-961023=0A=
=0A=
*multilib:=0A=
.. ;=0A=
=0A=
*multilib_defaults:=0A=
=0A=
=0A=
*multilib_extra:=0A=
=0A=
=0A=
*multilib_matches:=0A=
=0A=
=0A=

------=_NextPart_000_01BC5F45.7C496C20--

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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