logo       

Re: [HACKERS] Need for DLLINIT in Makefile.shlib: msg#00024

Subject: Re: [HACKERS] Need for DLLINIT in Makefile.shlib
Bruce Momjian schrieb:
I am curious why Cygwin needs DLLINIT in Makefile.shlib, and Win32
doesn't:

        # Cygwin case
        $(shlib) lib$(NAME).a: $(OBJS) $(DLLINIT)
                $(DLLTOOL) --export-all $(DLLTOOL_DEFFLAGS) --output-def 
$(NAME).def $(OBJS)
                $(DLLWRAP) -o $(shlib) --dllname $(shlib) $(DLLWRAP_FLAGS) 
--def $(NAME).def $(OBJS) $(DLLINIT) $(SHLIB_LINK)
                $(DLLTOOL) --dllname $(shlib) $(DLLTOOL_LIBFLAGS) --def 
$(NAME).def --output-lib lib$(NAME).a
        
        $(DLLINIT): $(DLLINIT:%.o=%.c)
                $(MAKE) -C $(@D) $(@F)
        
        endif # PORTNAME == cygwin
        
        else # PORTNAME == win32
        
        # win32 case
        $(shlib) lib$(NAME).a: $(OBJS)
                $(DLLTOOL) --export-all $(DLLTOOL_DEFFLAGS) --output-def 
$(NAME).def $(OBJS)
                $(DLLWRAP) -o $(shlib) --dllname $(shlib) $(DLLWRAP_FLAGS) 
--def $(NAME).def $(OBJS) $(SHLIB_LINK)
                $(DLLTOOL) --dllname $(shlib) $(DLLTOOL_LIBFLAGS) --def 
$(NAME).def --output-lib lib$(NAME).a
        
        endif # PORTNAME == win32

The only difference I see is that Cygwin uses $(DLLINIT) while Win32 does
not.  Is that correct?  Why?

Both set DLLINIT in their makefiles:

        DLLINIT = $(top_builddir)/src/utils/dllinit.o

Could they be merged into a single snipped of code?

Good point!
Out of my head: I don't think that we (cygwin) don't need that anymore. With newer binutils it should get autogenerated. But I'll have to test before you can remove that dir.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
web.pylons.gene...    hurd.l4/2002-10...    kernel.commits....    user-groups.lin...    yellowdog.gener...    java.drools.use...    security.openva...    package-managem...    linux.debian.us...    qnx.openqnx.dev...    genealogy.gramp...    file-systems.if...    voip.wengophone...    tex.context/200...    ietf.smime/2003...    audio.csound.de...    culture.region....    xfree86.devel/2...    mobile.kannel.u...    distributed.con...    education.engli...    org.user-groups...    bug-tracking.gn...    recreation.bicy...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe