Mail Archives: djgpp/2000/09/27/01:09:19
On Tue, 26 Sep 2000, Jason Green wrote:
> Edit the file \djgpp\src\libc\pc_hw\sound\sound.c
>
> change:
>
> int scale;
> if (freq == 0)
> {
> outportb(0x61, inportb(0x61) & ~3);
> return;
> }
>
> to:
>
> int scale;
> outportb(0x61, inportb(0x61) & ~3);
> if (freq == 0)
> {
> return;
> }
>
> Recompile and merge with libc:
>
> C:\djgpp\src\libc\pc_hw\sound>gcc -O2 -Wall -c sound.c
>
> C:\djgpp\src\libc\pc_hw\sound>ar rvs /djgpp/lib/libc.a sound.o
> r - sound.o
>
> And test to see if the bug is fixed for NT.
But please first test that the original libc version does have
problems as reported in this thread, before you try the new version
above. Otherwise, we don't know that this change indeed fixes that
problem.
If someone can test this on an NT and report that it works, I will
commit the change. Thanks!
> [Note to Eli, is it really necessary to specify drive letter to ar?
No, the argument is a normal file name, so it can be without the drive
letter if the file is on the current drive.
> If not then there is a redundant note in the FAQ about this.]
You mean in the following snippet?
gcc -c -O2 foo.c
ar rvs c:/djgpp/lib/libc.a foo.o
(This example assumes that DJGPP is installed in the `C:\DJGPP' directory; if
not, you will need to change the pathname of `libc.a' accordingly.)
If so, I don't think the note is redundant; I was just trying to come
up with a command line that will work for everyone without
complicating the matter with too many words.
- Raw text -