gopkg.in/ubuntu-core/snappy.v0@v0.0.0-20210902073436-25a8614f10a6/cmd/snap-update-ns/bootstrap_ppc64le.go (about)

     1  // -*- Mode: Go; indent-tabs-mode: t -*-
     2  //
     3  // +build ppc64le,go1.7,!go1.8
     4  
     5  /*
     6   * Copyright (C) 2017 Canonical Ltd
     7   *
     8   * This program is free software: you can redistribute it and/or modify
     9   * it under the terms of the GNU General Public License version 3 as
    10   * published by the Free Software Foundation.
    11   *
    12   * This program is distributed in the hope that it will be useful,
    13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
    14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    15   * GNU General Public License for more details.
    16   *
    17   * You should have received a copy of the GNU General Public License
    18   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
    19   *
    20   */
    21  
    22  package main
    23  
    24  /*
    25  #cgo LDFLAGS: -no-pie
    26  
    27  // we need "-no-pie" for ppc64le,go1.7 to work around build failure on
    28  // ppc64el with go1.7, see
    29  // https://forum.snapcraft.io/t/snapd-master-fails-on-zesty-ppc64el-with-r-ppc64-addr16-ha-for-symbol-out-of-range/
    30  */
    31  import "C"