summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>2001-03-07 13:06:06 +0000
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>2001-03-07 13:06:06 +0000
commit333f624e9f02d5f569b9b0d4bd351af8b753dd0e (patch)
tree9022eb273c7d48ac2c1aa411b28b8cbdd300158e
parent69e7f0db6e7be52c559db3ff22f6a1b00b24865a (diff)
downloadglib-333f624e9f02d5f569b9b0d4bd351af8b753dd0e.tar.gz
Set G_LOG_DOMAIN to \"GModule\" instead of g_log_domain_gmodule.
2001-03-07 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * makefile.cygwin.in, makefile.msc.in: Set G_LOG_DOMAIN to \"GModule\" instead of g_log_domain_gmodule. * gmodule/Makefile.am: Set G_LOG_DOMAIN to \"GModule\" instead of g_log_domain_gmodule. * gmodule/gmodule.c, gmodule/gmodule.def, gmodule/gmodule.h: Removed g_log_domain_gmodule. This fixes Bug #51643 for good.
-rw-r--r--ChangeLog6
-rw-r--r--ChangeLog.pre-2-06
-rw-r--r--ChangeLog.pre-2-106
-rw-r--r--ChangeLog.pre-2-126
-rw-r--r--ChangeLog.pre-2-26
-rw-r--r--ChangeLog.pre-2-46
-rw-r--r--ChangeLog.pre-2-66
-rw-r--r--ChangeLog.pre-2-86
-rw-r--r--glib/makefile.msc.in2
-rw-r--r--gmodule/ChangeLog8
-rw-r--r--gmodule/Makefile.am2
-rw-r--r--gmodule/gmodule.c1
-rw-r--r--gmodule/gmodule.def1
-rw-r--r--gmodule/gmodule.h3
-rw-r--r--makefile.cygwin.in158
-rw-r--r--makefile.msc.in2
16 files changed, 217 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 1636b8285..554a5c46e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-03-07 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * makefile.cygwin.in, makefile.msc.in: Set G_LOG_DOMAIN to
+ \"GModule\" instead of g_log_domain_gmodule. This fixes Bug
+ #51643 for good.
+
Fri Mar 2 12:35:40 2001 Owen Taylor <otaylor@redhat.com>
* Release 1.2.9
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index 1636b8285..554a5c46e 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -1,3 +1,9 @@
+2001-03-07 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * makefile.cygwin.in, makefile.msc.in: Set G_LOG_DOMAIN to
+ \"GModule\" instead of g_log_domain_gmodule. This fixes Bug
+ #51643 for good.
+
Fri Mar 2 12:35:40 2001 Owen Taylor <otaylor@redhat.com>
* Release 1.2.9
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 1636b8285..554a5c46e 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,9 @@
+2001-03-07 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * makefile.cygwin.in, makefile.msc.in: Set G_LOG_DOMAIN to
+ \"GModule\" instead of g_log_domain_gmodule. This fixes Bug
+ #51643 for good.
+
Fri Mar 2 12:35:40 2001 Owen Taylor <otaylor@redhat.com>
* Release 1.2.9
diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12
index 1636b8285..554a5c46e 100644
--- a/ChangeLog.pre-2-12
+++ b/ChangeLog.pre-2-12
@@ -1,3 +1,9 @@
+2001-03-07 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * makefile.cygwin.in, makefile.msc.in: Set G_LOG_DOMAIN to
+ \"GModule\" instead of g_log_domain_gmodule. This fixes Bug
+ #51643 for good.
+
Fri Mar 2 12:35:40 2001 Owen Taylor <otaylor@redhat.com>
* Release 1.2.9
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index 1636b8285..554a5c46e 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -1,3 +1,9 @@
+2001-03-07 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * makefile.cygwin.in, makefile.msc.in: Set G_LOG_DOMAIN to
+ \"GModule\" instead of g_log_domain_gmodule. This fixes Bug
+ #51643 for good.
+
Fri Mar 2 12:35:40 2001 Owen Taylor <otaylor@redhat.com>
* Release 1.2.9
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 1636b8285..554a5c46e 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -1,3 +1,9 @@
+2001-03-07 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * makefile.cygwin.in, makefile.msc.in: Set G_LOG_DOMAIN to
+ \"GModule\" instead of g_log_domain_gmodule. This fixes Bug
+ #51643 for good.
+
Fri Mar 2 12:35:40 2001 Owen Taylor <otaylor@redhat.com>
* Release 1.2.9
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 1636b8285..554a5c46e 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -1,3 +1,9 @@
+2001-03-07 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * makefile.cygwin.in, makefile.msc.in: Set G_LOG_DOMAIN to
+ \"GModule\" instead of g_log_domain_gmodule. This fixes Bug
+ #51643 for good.
+
Fri Mar 2 12:35:40 2001 Owen Taylor <otaylor@redhat.com>
* Release 1.2.9
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 1636b8285..554a5c46e 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,3 +1,9 @@
+2001-03-07 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * makefile.cygwin.in, makefile.msc.in: Set G_LOG_DOMAIN to
+ \"GModule\" instead of g_log_domain_gmodule. This fixes Bug
+ #51643 for good.
+
Fri Mar 2 12:35:40 2001 Owen Taylor <otaylor@redhat.com>
* Release 1.2.9
diff --git a/glib/makefile.msc.in b/glib/makefile.msc.in
index a0215f114..129cdcf34 100644
--- a/glib/makefile.msc.in
+++ b/glib/makefile.msc.in
@@ -91,7 +91,7 @@ gmodule-$(GLIB_VER).dll : $(gmodule_OBJECTS)
$(CC) $(CFLAGS) -LD -Fegmodule-$(GLIB_VER).dll $(gmodule_OBJECTS) glib-$(GLIB_VER).lib $(LDFLAGS) /def:gmodule\gmodule.def
gmodule.obj : gmodule\gmodule.c gmodule\gmodule-win32.c
- $(CC) $(CFLAGS) -GD -Igmodule -c -DG_LOG_DOMAIN=g_log_domain_gmodule gmodule\gmodule.c
+ $(CC) $(CFLAGS) -GD -Igmodule -c -DG_LOG_DOMAIN=\"GModule\" gmodule\gmodule.c
gmodule\gmoduleconf.h: gmodule\gmoduleconf.h.win32
copy gmodule\gmoduleconf.h.win32 gmodule\gmoduleconf.h
diff --git a/gmodule/ChangeLog b/gmodule/ChangeLog
index 33daaf4cb..d806882a5 100644
--- a/gmodule/ChangeLog
+++ b/gmodule/ChangeLog
@@ -1,3 +1,11 @@
+2001-03-07 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * Makefile.am: Set G_LOG_DOMAIN to \"GModule\" instead of
+ g_log_domain_gmodule.
+
+ * gmodule.c, gmodule.def, gmodule.h: Removed
+ g_log_domain_gmodule. This fixes Bug #51643 for good.
+
Sat Feb 17 07:33:21 2001 Tim Janik <timj@gtk.org>
* gmodule-dl.c: fix systems with broken RTLD_GLOBAL.
diff --git a/gmodule/Makefile.am b/gmodule/Makefile.am
index 6e9a469d0..ff4410ad0 100644
--- a/gmodule/Makefile.am
+++ b/gmodule/Makefile.am
@@ -1,7 +1,7 @@
## Process this file with automake to produce Makefile.in
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/gmodule \
- -DG_LOG_DOMAIN=g_log_domain_gmodule @GLIB_DEBUG_FLAGS@
+ -DG_LOG_DOMAIN=\"GModule\" @GLIB_DEBUG_FLAGS@
EXTRA_DIST = \
gmoduleconf.h.in \
diff --git a/gmodule/gmodule.c b/gmodule/gmodule.c
index dcd04dd95..b2051b94d 100644
--- a/gmodule/gmodule.c
+++ b/gmodule/gmodule.c
@@ -72,7 +72,6 @@ static inline GModule* g_module_find_by_name (const gchar *name);
/* --- variables --- */
G_LOCK_DEFINE_STATIC (GModule);
-const char *g_log_domain_gmodule = "GModule";
static GModule *modules = NULL;
static GModule *main_module = NULL;
static GStaticPrivate module_error_private = G_STATIC_PRIVATE_INIT;
diff --git a/gmodule/gmodule.def b/gmodule/gmodule.def
index 5af8869ff..11e0d5da3 100644
--- a/gmodule/gmodule.def
+++ b/gmodule/gmodule.def
@@ -1,5 +1,4 @@
EXPORTS
- g_log_domain_gmodule
g_module_build_path
g_module_close
g_module_error
diff --git a/gmodule/gmodule.h b/gmodule/gmodule.h
index 87ea93094..c9c8fa2c5 100644
--- a/gmodule/gmodule.h
+++ b/gmodule/gmodule.h
@@ -33,9 +33,6 @@
extern "C" {
#endif /* __cplusplus */
-extern const char *g_log_domain_gmodule;
-
-
/* exporting and importing functions, this is special cased
* to feature Windows dll stubs.
*/
diff --git a/makefile.cygwin.in b/makefile.cygwin.in
new file mode 100644
index 000000000..bebb01ea6
--- /dev/null
+++ b/makefile.cygwin.in
@@ -0,0 +1,158 @@
+## Makefile for building the GLib, gmodule and gthread DLLs with
+## egcs on cygwin.
+## Use: make -f makefile.cygwin install
+
+# Change this to wherever you want to install the DLLs. This directory
+# should be in your PATH.
+BIN = /bin
+
+# This is the location of pthreads for Win32,
+# see http://sourceware.cygnus.com/pthreads-win32/
+# We want the 1999-05-30 snapshot.
+PTHREADS = ../pthreads-snap-1999-05-30
+PTHREAD_LIB = -L$(PTHREADS) -lpthread32
+PTHREAD_INC = -I $(PTHREADS)
+
+OPTIMIZE = -g -O
+
+################################################################
+
+# Nothing much configurable below
+
+CC = gcc -mno-cygwin -mpentium
+
+CP = cp
+LD = ld
+DLLTOOL = dlltool
+INSTALL = install
+
+GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
+
+CFLAGS = $(OPTIMIZE) -I. -DHAVE_CONFIG_H
+
+all : \
+ config.h \
+ glibconfig.h \
+ glib-$(GLIB_VER).gcc.dll \
+ gmodule/gmoduleconf.h \
+ gmodule-$(GLIB_VER).gcc.dll \
+ gthread-$(GLIB_VER).gcc.dll \
+ testglib.exe \
+ testgmodule.exe \
+ testgdate.exe \
+ testgdateparser.exe
+
+install : all
+ $(INSTALL) glib-$(GLIB_VER).gcc.dll $(BIN)
+ $(INSTALL) gmodule-$(GLIB_VER).gcc.dll $(BIN)
+ $(INSTALL) gthread-$(GLIB_VER).gcc.dll $(BIN)
+
+glib_OBJECTS = \
+ garray.o \
+ gcache.o \
+ gcompletion.o \
+ gdataset.o \
+ gdate.o \
+ gerror.o \
+ ghook.o \
+ ghash.o \
+ giochannel.o \
+ giowin32.o \
+ glist.o \
+ gmain.o \
+ gmem.o \
+ gmessages.o \
+ gnode.o \
+ gprimes.o \
+ gqueue.o \
+ grand.o \
+ gslist.o \
+ gstack.o \
+ gthread.o \
+ gtimer.o \
+ gtree.o \
+ grel.o \
+ gstring.o \
+ gstrfuncs.o \
+ gscanner.o \
+ gutils.o
+
+glib-$(GLIB_VER).gcc.dll : $(glib_OBJECTS) glib.def
+ ./build-dll glib $(GLIB_VER).gcc glib.def $(glib_OBJECTS) -luser32 -lwsock32
+
+glibconfig.h: glibconfig.h.win32
+ $(CP) glibconfig.h.win32 glibconfig.h
+
+config.h: config.h.win32
+ $(CP) config.h.win32 config.h
+
+.c.o :
+ $(CC) $(CFLAGS) -c -DGLIB_COMPILATION -DG_LOG_DOMAIN=g_log_domain_glib $<
+
+gmodule_OBJECTS = \
+ gmodule.o
+
+gmodule-$(GLIB_VER).gcc.dll : $(gmodule_OBJECTS) gmodule/gmodule.def
+ ./build-dll gmodule $(GLIB_VER).gcc gmodule/gmodule.def $(gmodule_OBJECTS) -L. -lglib-$(GLIB_VER).gcc -lwsock32
+
+gmodule.o : gmodule/gmodule.c gmodule/gmodule-win32.c
+ $(CC) $(CFLAGS) -Igmodule -c -DG_LOG_DOMAIN=\"GModule\" gmodule/gmodule.c
+
+gmodule/gmoduleconf.h: gmodule/gmoduleconf.h.win32
+ $(CP) gmodule/gmoduleconf.h.win32 gmodule/gmoduleconf.h
+
+gthread_OBJECTS = \
+ gthread-impl.o
+
+gthread-$(GLIB_VER).gcc.dll : $(gthread_OBJECTS) glib-$(GLIB_VER).gcc.dll gthread/gthread.def
+ ./build-dll gthread $(GLIB_VER).gcc gthread/gthread.def $(gthread_OBJECTS) -L. -lglib-$(GLIB_VER).gcc $(PTHREAD_LIB)
+
+gthread-impl.o : gthread/gthread-impl.c gthread/gthread-posix.c
+ $(CC) $(CFLAGS) $(PTHREAD_INC) -DG_LOG_DOMAIN=\"GThread\" -c gthread/gthread-impl.c
+
+testglib.exe : glib-$(GLIB_VER).gcc.dll testglib.o
+ $(CC) $(CFLAGS) -o testglib testglib.o -L. -lglib-$(GLIB_VER).gcc $(LDFLAGS)
+
+testglib.o : testglib.c
+ $(CC) -c $(CFLAGS) testglib.c
+
+testgdate.exe : glib-$(GLIB_VER).gcc.dll testgdate.o
+ $(CC) $(CFLAGS) -o testgdate.exe testgdate.o -L. -lglib-$(GLIB_VER).gcc $(LDFLAGS)
+
+testgdate.o : testgdate.c
+ $(CC) -c $(CFLAGS) testgdate.c
+
+testgdateparser.exe : glib-$(GLIB_VER).gcc.dll testgdateparser.o
+ $(CC) $(CFLAGS) -o testgdateparser.exe testgdateparser.o -L. -lglib-$(GLIB_VER).gcc $(LDFLAGS)
+
+testgdateparser.o : testgdateparser.c
+ $(CC) -c $(CFLAGS) testgdateparser.c
+
+testgmodule.exe : glib-$(GLIB_VER).gcc.dll gmodule-$(GLIB_VER).gcc.dll testgmodule.o libgplugin_a.dll libgplugin_b.dll
+# Wow, do we really have to do it like this to get some symbols
+# exported from a .exe? Apparently yes. Does the __declspec(dllexport)
+# actually do anything in egcs-1.1.2?
+ $(CC) $(CFLAGS) -Wl,--base-file,testgmodule.base -o testgmodule.exe testgmodule.o -L. -lglib-$(GLIB_VER).gcc -lgmodule-$(GLIB_VER).gcc $(LDFLAGS)
+ $(DLLTOOL) --base-file testgmodule.base --output-exp testgmodule.exp testgmodule.o
+ $(CC) $(CFLAGS) -Wl,--base-file,testgmodule.base,testgmodule.exp -o testgmodule.exe testgmodule.o -L. -lglib-$(GLIB_VER).gcc -lgmodule-$(GLIB_VER).gcc $(LDFLAGS)
+ $(DLLTOOL) --base-file testgmodule.base --output-exp testgmodule.exp testgmodule.o
+ $(CC) $(CFLAGS) -Wl,testgmodule.exp -o testgmodule.exe testgmodule.o -L. -lglib-$(GLIB_VER).gcc -lgmodule-$(GLIB_VER).gcc $(LDFLAGS)
+
+testgmodule.o : gmodule/testgmodule.c
+ $(CC) $(CFLAGS) -Igmodule -c gmodule/testgmodule.c
+
+libgplugin_a.dll : libgplugin_a.o
+ ./build-dll libgplugin_a - - libgplugin_a.o -L. -lglib-$(GLIB_VER).gcc -lgmodule-$(GLIB_VER).gcc
+
+libgplugin_a.o : gmodule/libgplugin_a.c
+ $(CC) $(CFLAGS) -Igmodule -c gmodule/libgplugin_a.c
+
+libgplugin_b.dll : libgplugin_b.o
+ ./build-dll libgplugin_b - - libgplugin_b.o -L. -lglib-$(GLIB_VER).gcc -lgmodule-$(GLIB_VER).gcc
+
+libgplugin_b.o : gmodule/libgplugin_b.c
+ $(CC) $(CFLAGS) -Igmodule -c gmodule/libgplugin_b.c
+
+clean:
+ -rm config.h glibconfig.h gmodule/gmoduleconf.h
+ -rm *.exe *.o *.dll *.a *.base *.exp
diff --git a/makefile.msc.in b/makefile.msc.in
index a0215f114..129cdcf34 100644
--- a/makefile.msc.in
+++ b/makefile.msc.in
@@ -91,7 +91,7 @@ gmodule-$(GLIB_VER).dll : $(gmodule_OBJECTS)
$(CC) $(CFLAGS) -LD -Fegmodule-$(GLIB_VER).dll $(gmodule_OBJECTS) glib-$(GLIB_VER).lib $(LDFLAGS) /def:gmodule\gmodule.def
gmodule.obj : gmodule\gmodule.c gmodule\gmodule-win32.c
- $(CC) $(CFLAGS) -GD -Igmodule -c -DG_LOG_DOMAIN=g_log_domain_gmodule gmodule\gmodule.c
+ $(CC) $(CFLAGS) -GD -Igmodule -c -DG_LOG_DOMAIN=\"GModule\" gmodule\gmodule.c
gmodule\gmoduleconf.h: gmodule\gmoduleconf.h.win32
copy gmodule\gmoduleconf.h.win32 gmodule\gmoduleconf.h