Boost logo

Boost-Build :

From: Reece Dunn (msclrhd_at_[hidden])
Date: 2005-11-18 03:43:54


Alexey Pakhunov wrote:
> Reece Dunn wrote:
>> 2. I need to add a C++ file which contains an empty DllMain function:
>> The msvc compiler supports the /noentry flag for resource only DLLs,
>> therefore we should have:
>>
>> -- builtin.jam
>>
>> feature resource-only : no yes : incidental ;
>>
>> -- msvc.jam
>>
>> flags msvc.link LINKFLAGS <link>shared/<resource-only>yes : -noentry ;
>
> Isn't it a MSVC specific thing?

Looks like... so I have moved the feature over to msvc.jam and provided
a patch for it.

- Reece

Index: msvc.jam
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/v2/tools/msvc.jam,v
retrieving revision 1.64
diff -u -r1.64 msvc.jam
--- msvc.jam 14 Nov 2005 15:15:06 -0000 1.64
+++ msvc.jam 18 Nov 2005 08:26:43 -0000
@@ -33,6 +33,8 @@
   # to be seen, though ;-)
   ;
 
+feature resource-only : no yes : incidental ;
+
 # List of all registered configurations
 .versions = [ new configurations ] ;
 
@@ -585,6 +587,7 @@
 flags msvc LINKFLAGS <user-interface>auto : /subsystem:posix ;
 
 flags msvc LINKFLAGS <main-target-type>LIB/<link>shared : /DLL ;
+flags msvc LINKFLAGS <main-target-type>LIB/<link>shared/<resource-only>yes : /noentry ;
 
 flags msvc.link USER_LINKFLAGS <linkflags> ;
 flags msvc.link LINKPATH <library-path> ;


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk