diff options
author | Björn Persson <bjorn@rombobjörn.se> | 2013-02-17 17:54:35 +0100 |
---|---|---|
committer | Björn Persson <bjorn@rombobjörn.se> | 2013-02-17 17:54:35 +0100 |
commit | ba9cf13e6dfa85bdb0f99295cbf578f4493ccf05 (patch) | |
tree | 161bba0b22eb07a6861cc9634d5e6ede14e87e42 /build_milter_api.gpr.in | |
parent | 4766a7a7a2f23ee10560e1a2a177eec8931d974a (diff) |
Made thread wrapping entirely library-controlled.
Diffstat (limited to 'build_milter_api.gpr.in')
-rw-r--r-- | build_milter_api.gpr.in | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/build_milter_api.gpr.in b/build_milter_api.gpr.in index dfa8334..318b55e 100644 --- a/build_milter_api.gpr.in +++ b/build_milter_api.gpr.in @@ -13,9 +13,17 @@ library project Build_Milter_API is Version := "1.2.1"; + #if Wrap_Threads then + Wrap_Flag := "-w"; + On_Or_Off := "on"; + #else + Wrap_Flag := ""; + On_Or_Off := "off"; + #end if; + for Library_Name use "adamilter"; for Library_Kind use "dynamic"; - for Library_Version use "libadamilter.so." & Version; + for Library_Version use "libadamilter-" & Version & Wrap_Flag & ".so.0"; for Languages use ("Ada", "C"); for Library_Interface use ("Milter_API", "Berkeley_Exit_Codes"); for Object_Dir use Comfignat.Objdir; @@ -23,6 +31,11 @@ library project Build_Milter_API is for Library_Dir use Comfignat.Stage_Libdir; for Library_ALI_Dir use Comfignat.Stage_Libdir & "/adamilter"; + package Naming is + for body("Milter_API.Start_Wrapping") use + "milter_api-start_wrapping." & On_Or_Off & ".adb"; + end Naming; + package Compiler is for Default_Switches ("Ada") use ("-gnato"); end Compiler; |