Make winkd somewhat portable.
[reactos.git] / reactos / ntoskrnl / ntoskrnl-generic.rbuild
index 7340db7..d4db736 100644 (file)
        <library>bootvid</library>
        <library>wdmguid</library>
        <dependency>bugcodes</dependency>
+       <!-- See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38269
        <directory name="include">
-               <pch>ntoskrnl.h</pch>
+               <pch>precomp.h</pch>
        </directory>
+       -->
        <directory name="ke">
                <if property="ARCH" value="i386">
                        <directory name="i386">
                        <file>kdlock.c</file>
                        <file>kdprint.c</file>
                        <file>kdtrap.c</file>
+                       <if property="ARCH" value="i386">
+                               <directory name="i386">
+                                       <file>kd-i386.c</file>
+                               </directory>
+                       </if>
+                       <if property="ARCH" value="amd64">
+                               <directory name="amd64">
+                                       <file>kd-amd64.c</file>
+                               </directory>
+                       </if>
                </directory>
        </if>
        <directory name="lpc">
        </directory>
        <file>ntoskrnl.rc</file>
        <linkerscript>ntoskrnl_$(ARCH).lnk</linkerscript>
+
+       <!-- See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38054#c7 -->
+       <compilerflag>-fno-unit-at-a-time</compilerflag>
 </group>