@@ -72,10 +72,13 @@ # Linker options (-L/.../lib) necessary to find the TCL # and curses libraries (if any). It is (hopefully) filled in # properly by the configure script. LDFLAGS = @LDFLAGS@ + +# Linker options when compiling a shared object +SHOBJLDFLAGS = @SHOBJLDFLAGS@ # Preprocessor options (-I/.../include) necessary to find the TCL # and curses header files (if any). It is (hopefully) filled in # properly by the configure script. CPPFLAGS = @CPPFLAGS@ @@ -174,13 +177,13 @@ libctk.a: $(OBJS) rm -f libctk.a ar cr libctk.a $(OBJS) $(RANLIB) libctk.a -libctk.so: $(OBJS) - rm -f libctk.so - gcc -rdynamic -shared $(CFLAGS) $(LDFLAGS) -o libctk.so $(OBJS) $(LIBS) +libctk.@SHOBJEXT@: $(OBJS) + rm -f libctk.@SHOBJEXT@ + $(CC) $(CFLAGS) $(LDFLAGS) $(SHOBJLDFLAGS) -o libctk.@SHOBJEXT@ $(OBJS) $(LIBS) configInfo: Makefile @rm -f configInfo @echo "# Definitions and libraries needed to build Tk applications" >> configInfo @echo "# (generated by the configure script):" >> configInfo