[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Thu, 23 Sep 2010 16:50:00 +0000 (16:50 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Thu, 23 Sep 2010 16:50:00 +0000 (16:50 +0000)
- Don't export symbols from pci(x) and pcmcia.

svn path=/branches/cmake-bringup/; revision=48852

drivers/bus/pci/CMakeLists.txt
drivers/bus/pcix/CMakeLists.txt
drivers/bus/pcmcia/CMakeLists.txt

index e7fa285..2d45bc3 100644 (file)
@@ -7,7 +7,7 @@ add_library(pci SHARED
     pdo.c
     pci.rc)
 
-set_target_properties(pci PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--subsystem,native" SUFFIX ".sys")
+set_target_properties(pci PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--subsystem,native -Wl,--exclude-all-symbols" SUFFIX ".sys")
 
 target_link_libraries(pci
     -lntoskrnl
index ed7f95f..8dc67bc 100644 (file)
@@ -40,7 +40,7 @@ list(APPEND SOURCE
 
 add_library(pcix SHARED ${CMAKE_CURRENT_BINARY_DIR}/pcix_pci.h.gch ${SOURCE})
 
-set_target_properties(pcix PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--subsystem,native" SUFFIX ".sys")
+set_target_properties(pcix PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--subsystem,native -Wl,--exclude-all-symbols" SUFFIX ".sys")
 
 target_link_libraries(pcix
     -lntoskrnl
index 845b8c2..be0b8ce 100644 (file)
@@ -7,7 +7,7 @@ add_library(pcmcia SHARED
     pdo.c
     pcmcia.rc)
 
-set_target_properties(pcmcia PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--subsystem,native" SUFFIX ".sys")
+set_target_properties(pcmcia PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--subsystem,native -Wl,--exclude-all-symbols" SUFFIX ".sys")
 
 target_link_libraries(pcmcia
     -lntoskrnl