【问题标题】:How do you specify $? options in an rpm file你如何指定$? rpm 文件中的选项
【发布时间】:2010-02-12 19:39:14
【问题描述】:

我正在尝试构建 freetds,但希望它在 freetds-devel 中包含静态库。看起来它需要一个选项_with_static,但不清楚指定它。这是 RPM 文件的一部分:

%build
%configure \
        --disable-dependency-tracking \
        --disable-rpath \
        %{!?_with_static: --disable-static} \
        --with-tdsver="4.2" \
        --with-unixodbc="%{_prefix}" \
        --enable-msdblib \
        --enable-sybase-compat \
        --with-gnutls

没有将规范文件更改为只有我想要的选项,当我运行rpmbuild 时如何指定_with_static

【问题讨论】:

    标签: linux rpmbuild


    【解决方案1】:

    --with static 传递给rpmbuild

    【讨论】:

      猜你喜欢
      • 2011-09-16
      • 2012-04-29
      • 1970-01-01
      • 2021-10-18
      • 2012-06-22
      • 1970-01-01
      • 1970-01-01
      • 2016-08-14
      • 1970-01-01
      相关资源
      最近更新 更多