bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compiling libparted with -D_REENTRANT ...


From: Timshel Knoll
Subject: Compiling libparted with -D_REENTRANT ...
Date: Mon, 23 Apr 2001 17:10:54 +1000
User-agent: Mutt/1.2.4i

Hi,

I've been compiling parted with -D_REENTRANT for quite some time now,
and I was thinking that it might be a good idea to do this upstream.
If any linux threaded programs are linked with a libparted not compiled
with -D_REENTRANT, there may be issues with stdio and errno stuff.

Here's a hack patch to libparted/Makefile.am that I use to do the job:

---begin---
Index: Makefile.am
===================================================================
RCS file: /org/home/timshel/cvs/debian/parted/libparted/Makefile.am,v
retrieving revision 1.1.1.2
retrieving revision 1.3
diff -u -r1.1.1.2 -r1.3
--- Makefile.am 2001/03/19 12:09:21     1.1.1.2
+++ Makefile.am 2001/03/19 13:23:11     1.3
@@ -7,6 +7,8 @@
 
 LIBS = @INTLLIBS@ @LIBS@
 
+CFLAGS = -D_REENTRANT @CFLAGS@
+
 partedincludedir      =        -I$(top_srcdir)/include
 lib_LTLIBRARIES              = libparted.la
 libparted_la_LDFLAGS  = -version-info 4:0:0
---end---

But you might want to put in an autoconfuse test for this or
something ...

I know that this isn't really an issue at the moment, but if anyone
decides to write some threaded code that uses parted, there could be
issues involved ...

Thanks,

Timshel

-- 
   Timshel Knoll <address@hidden>  for Debian email: <address@hidden>
                Geomatics/Computer Science double degree, RMIT
      Debian GNU/Linux developer, see http://people.debian.org/~timshel/
                For GnuPG public key: finger address@hidden

Attachment: pgpUp7Zrzr3Th.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]